1. 准备需要的安装的东西
yum -y install make gcc openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel ncurses-devel sqlite3-devel mysql-devel httpd-devel wget which |
2 下载源文件
cd /usr/srcwget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gztar zxf yaml-0.1.4.tar.gzcd yaml-0.1.4./configure --prefix=/usr/localmake && make install |
cd /usr/srcwget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gztar zxf ruby-1.9.3-p0.tar.gzcd ruby-1.9.3-p0./configure --prefix=/usr/local --disable-install-doc --with-opt-dir=/usr/local/libmake && make install |
3 whereis 查看ruby路径
whereis ruby
http://www.ruby-lang.org/en/downloads/下载你需要的版本
tar-xvzf ruby-2.3.0
cd ruby-2.3.0
./configure
本文详细介绍如何使用YUM安装必要的依赖并下载安装Ruby及PyYAML的源文件,通过具体步骤指导读者完成Ruby环境的配置,并提供了检查Ruby安装路径的方法。
2699

被折叠的 条评论
为什么被折叠?



