2014-01-24 50 views
0

本地的Ruby 2.0.0,但應用程序認爲安裝1.9.3版本:
# bundle install
>> Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0Rails應用程序不能正確看到紅寶石的版本,所以我不能DB遷移安裝

# ruby -v 
>> ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux] 


[也許所以]我得到一個錯誤,當嘗試推:

# heroku run rake db:migrate
>> Running rake db:migrate attached to terminal... up, run.5384
>> /usr/bin/env: ruby1.9.1: No such file or directory

和地方:

# rake db:migrate
>> rake aborted!
>> cannot load such file -- bundler/setup

謝謝...

+0

你可以嘗試刪除你的Gemfile.lock嗎?是否Ruby ruby​​gems是針對Ruby 1.9.3構建的?如果是這樣,你可能想嘗試重新安裝rubygems。 –

+0

您是否嘗試過運行'哪個ruby'和哪個bundle?也許你搞砸了一些符號鏈接,如果你使用rbenv嘗試運行'rbenv rehash' – alex88

回答

0

在你的Gemfile添加

ruby '2.0.0' 
相關問題