感谢支持
我们一直在努力

Ubuntu 12.04 配置Ruby环境

在Ubuntu 12.04 上配置Ruby的开发环境:


1 ) 安装基本依赖包


sudo apt-get install git curl build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion


2)配置Git


git config –global user.name YourName
git config –global user.email  Your email


3)安装RVM


bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )


4)配置


vi .bashrc


结尾加上


[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”


然后reload bashrc


source .bashrc


5)安装Ruby


rvm pkg install zlib
rvm install 1.9.3
rvm use 1.9.3
gem install rails

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu 12.04 配置Ruby环境
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏