・フォルダ
my_app.rb
vendor/bundle/ruby/1.9.1/...
・実行コマンド
bundle exec ruby app.rb
・エラー
Your bundle is locked to i18n (0.7.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of i18n (0.7.0) has removed it. You'll need to update your bundle to a different version of i18n (0.7.0) that hasn't been removed in order to install.
Run bundle install
to install missing gems.
ruby
1require 'sinatra/base' 2class App < Sinatra::Base 3 get '/' do 4 "hello" 5 end 6end
このような簡単なアプリを動かそうとしています。
エラーの内容からi18nをgem install i18nなどしたりしてもエラーが直りません。
どのあたりが問題なのでしょうか。
・バージョンについて
which ruby
.rbenv/shims/ruby
which bundle
.rbenv/shims/bundle
ruby -v
ruby 2.0.0p576 (2014-09-19 revision 47628) [x86_64-linux]
rubyのバージョンは2.0なのにvendor/bundle/ruby/1.9.1に1.9ができてるのも気になります。
gem environmentでみたときに.rbenv/shimsや.rbenv/binが複数でているのも気になっています。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。