centos6下ruby环境配置的搭建--self

一:安装依赖包
yum -y install gcc
yum install flex autoconf zlib curl zlib-devel curl-devel bzip2 bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel gcc+ gcc-c++ libxml2 libxml2-devel libxslt libxslt-devel


二:安装rvm
    https://rvm.beginrescueend.com/rvm/install/Multi-User installations --
sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/  binscripts/rvm-installer)


三:安装ruby  
rvm install 1.9.2  
rvm use ruby-1.9.2 --default


四:安装rails 
gem install rails -v 3.0.0

你可能感兴趣的:(Ruby)