1. Installation ruby1.9.2
(1) tar jxvf ruby-1.9.2-p0.tar.bz2
(2) cd ruby-1.9.2-p0
(3). / Configure-prefix = / usr / local / ruby
(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)
(1) sudo apt-get install zlib1g-dev
(2) and then to the source directory ext / zlib under
(3) ruby extconf.rb
(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.
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
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.
Related Posts of Ubuntu on the structures ruby1.9.2 on rails3rc
My local wamp server using one of the key package, only used mysql functions, today in the use of rake db: migrate when First reported a month can not be implemented, the next inquiry and found no mysql installed a gem, to install gem install mysql i ...
In accordance with the sequence starting from the beginning CGI Ruby CGI Doc: The Common Gateway Interface ( CGI ) Is a simple protocol for passing an HTTP request from a web server to a standalone program, and returning the output to the web browser ...
1) Rails defines two abstract class: AbstractRequest and AbstractResponse code is not posted, first take a look at Response. 2) is mainly responsible for the specific ctgi_process.rb main interface is responsible for implementation methods of impleme ...
pen Flash Chart is an open source Flash chart drawing tool, offers a variety of programming interfaces, including PHP, Ruby, Perl, Python, Java,. Net, AS, JS, etc. to generate a variety of data interfaces, and then Flash to display the function is to ...
Error: The 'Hibernate proposals' proposal computer from the' org.hibernate.eclipse.jdt.ui 'plug-in dod not complete normally. Unable to instantiate the extension. To Avoid this message, disable the 'org.hibernate.eclipse.jdt.ui ...
In Rails2.0.2 rails demo ... ... MissingSourceFile in SayController # hello no such file to load - sqlite3 RAILS_ROOT: / home / kenb / rails-projects / demo ... ... Checked config / database.yml, adpter default is set become the sqlite3. Check the ra ...
1.uninitialized constant Dependencies Conditions: In windows under way to install the RSpec gem and rspec-rails. However, in ruby script / spec_server to do the test under the spec your_spec.rb-X will appear uninitialized constant Dependencies (NameE ...
Ruby is long overdue to replace java more flexible and make some necessary changes in a matter of, if not deep-rooted culture of the company's java, I think. . . . . . The following are my Writing for the Rest of the interface used to make the test su
Now do live more and more often required to use eclipse in java and ruby & rails project conducted between the tangential shear from the past, because in the rails project used a coloring Aptana preferences, the results open the java project sour ...
Environment: XP: oracle full client, ruby, rails, gem cygwin: ruby rails, gem (the version with the XP version) Needs: for cygwin is installed under the rails platform support oci Steps: <1> download oracle instant client (10.2.0.3 Instant Client Pa