2011-05-03 87 views
0

我以前使用過sqlite。我的朋友給我發了一個我試圖運行的框架應用程序。錯誤sqlite3需要Ruby版本> = 1.9.1

當我嘗試做「軌服務器」或「瘦啓動」它說

Could not find sqlite3-0.1.1 in any of the sources"

我試圖做捆綁安裝,但它拋出這個錯誤:

Installing sqlite3 (0.1.1) /Library/Ruby/Site/1.8/rubygems/installer.rb:364:in ensure_required_ruby_version_met': sqlite3 requires Ruby version >= 1.9.1. (Gem::InstallError) from /Library/Ruby/Site/1.8/rubygems/installer.rb:135:in install' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/source.rb:96:in install' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/installer.rb:55:in run' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:in each' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:in each' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/installer.rb:44:in run' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/installer.rb:8:in install' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/cli.rb:225:in install' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/vendor/thor/task.rb:22:in send' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/vendor/thor/task.rb:22:in run' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/vendor/thor/invocation.rb:118:in invoke_task' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/vendor/thor.rb:246:in dispatch' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/lib/bundler/vendor/thor/base.rb:389:in start' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.12/bin/bundle:13 from /usr/bin/bundle:19:in `load' from /usr/bin/bundle:19

我不知道它爲什麼試圖查看安裝了Ruby 1.9.2的1.8文件夾。

我在做什麼錯?

+0

你有紅寶石1.9.2安裝,但它是你的道路上的第一個? '哪個ruby'指向什麼? – JasonTrue 2011-05-03 22:50:25

+0

/usr/bin/ruby​​ 這是「哪個ruby」 – 2011-05-03 22:52:11

+0

的輸出以及「ruby -v」告訴你什麼? – JasonTrue 2011-05-03 22:52:28

回答

2

您的bundle命令指向您的系統Ruby,鍵入以下內容以查看您的Bundler指向哪個Ruby:head -1 $(which bundle)要麼需要指向您要使用的Ruby,要麼需要使用Ruby你想用來安裝Bundler gem(這會將正確的shebang行放入bundle可執行文件中)。

相關問題