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
相关推荐
PMJ0 2020-10-13
longzhiwen 2020-09-06
yangxingstar 2020-08-31
LUCIEN0 2020-08-17
huangzihao00 2020-08-17
Jan 2020-08-17
AndesStay 2020-06-12
afengxg 2020-06-09
zamesking 2020-06-09
afengxg 2020-06-09
何志文 2020-06-09
teresalxm 2020-06-05
何志文 2020-05-16
何志文 2020-05-11
fsl 2020-05-04
JOO 2020-04-26
倩 2020-04-22
afanti 2020-04-19
始终不够 2020-04-10