Ubuntu on the structures ruby1.9.2 on rails3rc

linux branch, or to use many different differences, most recently to look more popular to use ubuntu, install ROR or find some subtle differences, then the next to speak.
1. Installation ruby1.9.2
Download Links:
http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.bz2

(1) tar jxvf ruby-1.9.2-p0.tar.bz2
(2) cd ruby-1.9.2-p0
(3). / Configure-prefix = / usr / local / ruby
(4) make
(5) make test
(6) sudo make install
Set environment variables:
As ubuntu10.0.4 comes with gedit, so you can directly gedit:
sudo gedit / etc / environment
My environment variable values are as follows:
PATH = "/ usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin: / usr / games: / usr / local / ruby / bin"
If there are other ruby, can be added in front.
Although the use of source / etc / environment can also be effective, but best to restart it because sometimes still can not find the ruby.
Then you can view the current command ruby-v ruby 1.9.2 is the latest of the.
But if you use gem list, will go wrong, suggesting that the library can not find zlib:
no such file to load - zlib (LoadError)
Solution:
(1) sudo apt-get install zlib1g-dev
(2) and then to the source directory ext / zlib under
(3) ruby extconf.rb
(4) make
(5) sudo make install
This ruby and gem install over.
2. Installation rails3rc
Theory can be used directly gem install rails - pre, but the installation requires Administrator privileges so that the use of sudo gem install rails - pre
In such a use of ubuntu on there are also problems, suggesting that the command was not found actually gem gem-v or gem list are available in the online search a bit, but also Gaoge soft link
sudo ln-s / usr / local / ruby / bin / ruby / usr / bin / ruby
sudo ln-s / usr / local / ruby / bin / gem / usr / bin / gem
This sudo ruby or sudo gem can be used normally, rails can be properly installed.

3. Install jdk and netbeans
Jdk had nothing to do with the installation of ruby, but the mainstream development tools, java netbeans is developed, it must be installed jdk.
http://download.netbeans.org/netbeans/6.9.1/final/bundles/netbeans-6.9.1-ml-ruby-linux.sh
https: / / cds.sun.com / is-bin / INTERSHOP.enfinity / WFS / CDS-CDS_Developer-Site / en_US /-/ USD / ViewFilteredProducts-SingleVariationTypeFilter
First before installing jdk installation file to the directory you want to install, such as
sudo mv jdk-6u21-linux-i586.bin / usr / local /
Then let the file has executable permissions:
sudo chmod + x jdk-6u21-linux-i586.bin
Installation:
sudo ./jdk-6u21-linux-i586.bin
Installed, do not set the java environment variables, because the installation will automatically search netbeans jdk path.
To be compared to the previous installation netbeans simple:
sudo sh netbeans-6.9.1-ml-ruby-linux.sh

As for the free installation of mysql and the server tried to write down after the first to write here.

分类:Ruby 时间:2010-08-20 人气:166
分享到:
blog comments powered by Disqus

相关文章

  • Ruby environment variables 2010-02-02

    Ruby installation environment variables Ruby in the installation process will automatically modify the system environment variable PATH, and add the environment variable RUBYOPT (So do not need to configure the Ruby environment variables, this is a v

  • I used Linux command of the env - display the current user's environment variables 2011-04-09

    I used Linux command of the env - display the current user's environment variables This link: http://codingstandards.iteye.com/blog/994906 (reproduced please indicate the source) Use Description env command to display the current user's environment v

  • How to create and extract the Linux zip, tar, tar.gz and tar.bz2 files 2010-08-17

    Data compression for us it is very useful. Whether it is in the message sent pictures with the zip file or compressed data files in Fuwu Qi, we can allow downloads to be more easy or Youxiao the save disk Kong Jian. Sometimes certain compression form

  • To view and modify the Linux environment variables 2010-11-16

    To view and modify the Linux environment variables 2010-03-11 15:54 View the environment variables in Linux 2009-10-30 10:25 System environment variables in the configuration web server and programming have been frequently used, it is necessary to kn

  • (Transfer) Ubuntu environment variables 2010-02-13

    Environment variable configuration file In Ubuntu, there are several files you can set the environment variable 1, / etc / profile: In the log, the operating system to use when customizing the user environment, the first file, the file system setting

  • Ubuntu environment variables 2010-08-19

    Environment variable configuration file In Ubuntu, there are several files you can set the environment variable 1, / etc / profile: In the log, the operating system to use when customizing the user environment, the first file, the file system setting

  • Ubuntu-depth understanding of the environment variables 2011-05-17

    Transfer from: http://blog.csdn.net/xiaosu_521/archive/2008/03/09/2160458.aspx Very good at writing, so I have ubuntu's understanding of environment variables, for the author. Environment variable configuration file In Ubuntu, there are several files

  • How to decompress zip, tar, tar.gz, tar.bz2 file 2011-02-22

    Over the years, data compression, for us it is very useful. Whether it is a picture in a message sent with the compressed zip file or data file on the server, we can make it easier to download or save disk space effectively. Some compression format a

  • I used Linux command of the export - set or display environment variables 2011-08-02

    I used Linux command of the export - set or display environment variables This link: http://codingstandards.iteye.com/blog/1138524 (reproduced please indicate the source) Use Description export command can be used to set or display environment variab

  • Under linux set environment variables at startup and software installation 2010-12-23

    1, set the startup environment variables from the configuration In the Linux terminal environment, export command can be used to set environment variables, but it set the variable disappears immediately after you close the terminal. If you want to se

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.203 (s). 12 q(s)