如何指定要在哪个版本的宝石中安装宝石?
Are you using RVM? If so, just go to you ruby:
rvm 1.9.2-head
then do
gem install whatever
use RVM. This is a good tutorial.
Do focus on creating gemset
您需要使用RVM ,这样就可以管理为什么红宝石/铁轨安装了什么宝石。
Are you not using RVM?
$> rvm use 1.9.2
$> gem install <gem name>
The gem will be installed only for Ruby 1.9.2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.