Installing Ruby with Upgrade RubyGems
tip: If you are prompted for permission issues during the installation process in the Ubuntu environment, you can use sudo make and sudo makes install.
1.Ruby Installation
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz \
&& TAR-XZVF ruby-1.9.3-p125.tar.gz \
&& cd ruby-1.9.3-p125 \
&&/configure--with-openssl-dir=/usr/lib/openssl make
& & Make Install
2.Zlib Support
CD ext/zlib
Ruby extconf.rb--with-zlib-include=/usr/include--with-zlib-lib=/usr/lib make
&& make Install
3.OPENSSL Support
CD Ext/openssl
Ruby extconf.rb make
&& make install
4.Readline Support
CD Ext/readline
Ruby extconf.rb make
&& make install
5. Upgrade RubyGems
Rails Local development environment build
install Ruby on Rails:
$ gem Install rails--no-ri--no-rdoc
In order to save installation time does not install file files, here plus--no-ri and--no-rdoc parameters. After the installation is complete, enter rails-v you should see rails 4.2.0.
Ubuntu needs to install the suite with root privileges: sudo gem install rails
The user Windows Friend unfortunately currently needs a manual nail repair action to use the Rubygem. First please download Rubygems-update-2.2.3.gem and put it under C:\:
$ gem Install--local C:\rubygems-update-2.2.3.gem
$ update_rubygems--no-ri--no-rdoc
$ gem Uninstall Rubygems-update
Then perform one more gem install rails--no-ri--no-rdoc install rails.