我在为曲目安装 gem 时遇到问题。我执行了以下步骤: 安装 rvm:
bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
source ~/.bashrc
红宝石的安装:
rvm install ruby-1.8.7
rvm use ruby-1.8.7 --default
ruby -v
最后一个命令响应:
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]
轨道的 Git 克隆:
git clone https://github.com/TracksApp/tracks.git
cd tracks
nano backup.rails2.3/Gemfile.rails2.3
此文件中所做的更改: - 注释掉 gem "sqlite3" - 更改 gem "ZenTest", "=4.6.0"
在此之后,我执行了 bundle install 退出并出现以下错误:
Gem::InstallError: factory_girl requires Ruby version >= 1.9.2.
An error occured while installing factory_girl (3.3.0), and Bundler cannot continue.
Make sure that `gem install factory_girl -v '3.3.0'` succeeds before bundling.
Tracks 不支持 ruby 1.9.x,因此无法进行版本升级。如何解决上述问题?