2015-05-30 14:07:57
来 源
中存储网
Ubuntu
在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-

在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

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。