慕标5832272
载ruby 编译安装ruby 1. 解压安装包 tar xfvz ruby-1.9.3.tar.gz 2. cd ruby-1.9.3 3. ./configure –prefix=/home/admin/ruby-1.8.4 –enable-pthread 4. make 5. make install 6. vi ~/.bash_profile 语句export PATH=$PATH:$HOME/bin:$M2_HOME/bin:$PIG_INSTALL/bin:面加/home/admin/usr/local/ruby193/bin 7. 执行.bash_profile文件使其改效: . ~/.bash_profile 8. 验证: ruby -v 显示ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]ruby安装功