Ruby installation on centos 6

Sometimethesystemwilllosessomepackagesforinstallingtheruby,hereistheCentOS,thefollowingdenpendenicesisnesscary.

Donwloadingrubypackagefromhttp://www.ruby-lang.org/en/downloads/

Step1installthedependenicypackagesofsystemandruby

#su
#yum install openssl* gcc-c++ zlib* readline* sqlite*
#cd /home/path/to/download/
#tar zxvf ruby-X.X.X.tar
#cd ruby-X.X.X
#./configure --prefix=/home/app/ruby
#make && make install

youcouldchooseyourpathofinstallationlikethis"--prefix=/usr/local/ruby"

Step2addthepathofrubyrunning

# echo 'pathmunge /home/app/ruby/bin' > /etc/profile.d/ruby.sh

andthen,typethecommandbeloworrestartyoursystem.

#source /etc/profile

Step3updateotherapplicationofruby

#gem update --system
#gem install rdoc-data
#gem install rails
#gem install thin
#gem install camping ramaze sinatra

Acmsbasedonramazeitcallszen,weinstallit.

Herewecompileagainabouttherestoftherubyextensionforotherapplicationsthatweneedtoaddafterinstallationatfirsttime.

#yum install libxml* libxslt*
#cd /ruby_installed_package_to_path/ext/etc/
#ruby extconf.rb
#make && make install
#gem install zen

相关推荐