码迷,mamicode.com
首页 > 其他好文 > 详细

radhat/centos 下编译安装ruby

时间:2014-11-25 09:23:43      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   os   on   bs   ad   amp   linux   

#安装编译环境

yum groupinstall "Development tools"

或者

yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel


#删除已经安装的项目:

yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs


#安装依赖:

yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel


#下载Ruby源码并解压缩:

tar zxvf ruby-1.9.3.pXXX.tar.gz


#编译安装:

cd ruby-1.9.3.pXXX

./configure

make && make install


#检查安装:

ruby -v

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


radhat/centos 下编译安装ruby

标签:http   io   ar   os   on   bs   ad   amp   linux   

原文地址:http://my.oschina.net/duolus/blog/348353

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!