-
Notifications
You must be signed in to change notification settings - Fork 62
Software
gazeldx edited this page Jan 8, 2013
·
16 revisions
下文参考自https://rvm.io/rvm/install/
$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
$ \curl -L https://get.rvm.io | bash -s stable --ruby
安装最后,会提示类似这样的一名话:
* To start using RVM you need to run `source /usr/local/rvm/scripts/rvm`
你照着做。下面是一个例子:
$ source /usr/local/rvm/scripts/rvm
创建gemset并将此gemset设为默认:
$ rvm gemset create rails3.2.7
$ rvm use [email protected] --default
把postgresql的package 'libpq-dev'和ImageMagick的package 'imagemagick'一起安装了
$ apt-get install libpq-dev imagemagick