我在为曲目安装宝石时遇到问题。我执行了以下步骤: 安装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
此flie所做的更改: - 评论出宝石“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.
曲目不支持ruby 1.9.x,因此无法升级版本。我该如何解决上述问题?
答案 0 :(得分:0)
你已经克隆了开发版本,接口为Ruby 1.9做好了准备: https://github.com/TracksApp/tracks/blob/master/Gemfile#L51
使用ruby 1.9或使用旧版本: https://github.com/TracksApp/tracks/tags