1

トラック用の 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 をサポートしていないため、バージョンアップはできません。上記の問題を解決するにはどうすればよいですか?

4

1 に答える 1

0

Ruby 1.9 の準備が整う開発バージョンのクローンを作成しました: https://github.com/TracksApp/tracks/blob/master/Gemfile#L51

ruby 1.9 で使用するか、古いバージョンを使用してください: https://github.com/TracksApp/tracks/tags

于 2012-05-22T16:07:13.940 に答える