欢迎光临Software MyZone,有问题可留言或到站点论坛发帖,争取第一时间帮忙解决 || 站点论坛:火龙论坛 || 淘宝小店:应小心的易淘屋 【欢迎大家提建设性意见】

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