Ubuntu 12.04 を使用しており、rvm を使用して Ruby をインストールしています。最近、Ruby を 1.9.3 から 2.0.0 にアップグレードしました。ruby のバージョンを表示すると 2.0.0 と表示されます。
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
solr サーバーを起動しようとすると、バンドルが見つからないと表示されます。
$ RAILS_ENV=development rake sunspot:solr:start
Could not find unicode_utils-1.4.0 in any of the sources
Run `bundle install` to install missing gems.
次に、しようとするとbundle install
、次のエラーが発生します。
$ bundle install
ERROR: RVM Ruby not used, run `rvm use 1.9.1` first.
既知のルビーを列挙すると、以下の MRI ルビーを取得しています。
$ rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-p374]
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p320]
[ruby-]1.9.3[-p448]
[ruby-]2.0.0-p195
[ruby-]2.0.0[-p247]
[ruby-]2.0.0-head
ruby-head
前に言ったように、私は最近 ruby を 2.0.0 に更新し、他のすべてのものを削除しました。その後、コンピューターを再起動するたびにbundle install
、サーバーを起動するために他の前提条件を実行する必要があります。バンドルがインストールされていることは確かですが、いくつかの rvm ruby バージョンが理由です。どんな助けでも大歓迎です。
編集1:試してみrvm use 2.0.0-p247
ましたが、以下は私が得た出力です。
$ rvm use 2.0.0-p247
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
それでも同じエラーが発生します。bundle install