之前我曾使用过sqlite。我的朋友给我发了一个我试图运行的骷髅轨道应用程序。
当我尝试“rails server”或“thin start”时,它说
在任何来源“
中找不到sqlite3-0.1.1
我尝试进行捆绑安装但是却抛出了这个错误:
安装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' 来自/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' 来自/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' 来自/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
发送' 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' 来自/Library/Ruby/Gems/1.8/gems/bundler-1.0.12/bin/bundle:13 来自/ usr / bin / bundle:19:在'load'中 来自/ usr / bin / bundle:19
我不知道它为什么要安装Ruby 1.9.2来查看1.8文件夹。
我做错了什么?
答案 0 :(得分:2)
您的bundle
命令指向您的系统Ruby,键入以下内容以查看您的Bundler指向的Ruby:head -1 $(which bundle)
要么需要指向您要使用的Ruby和/或者你需要使用你想要用来安装Bundler gem的Ruby(它会在你的bundle
可执行文件中放置正确的shebang行。)