我以前使用過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:ininstall' 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:ineach' 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:inrun' 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:ininstall' 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:inrun' 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:indispatch' 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文件夾。
我在做什麼錯?
你有紅寶石1.9.2安裝,但它是你的道路上的第一個? '哪個ruby'指向什麼? – JasonTrue 2011-05-03 22:50:25
/usr/bin/ruby 這是「哪個ruby」 – 2011-05-03 22:52:11
的輸出以及「ruby -v」告訴你什麼? – JasonTrue 2011-05-03 22:52:28