[英]error sqlite3 requires Ruby version >= 1.9.1
I've used sqlite before.我以前用过 sqlite。 My friend sent me a skeleton rails app that I am trying to run.我的朋友给我发了一个我正在尝试运行的骨架导轨应用程序。
When I try to do "rails server" or "thin start" it says当我尝试做“rails server”或“thin start”时,它说
Could not find sqlite3-0.1.1 in any of the sources"在任何来源中都找不到 sqlite3-0.1.1”
I tried to do bundle install but it throws this error:我试图做捆绑安装,但它抛出了这个错误:
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
安装 sqlite3 (0.1.1) /Library/Ruby/Site/1.8/rubygems/installer.rb:364:inensure_required_ruby_version_met': sqlite3 requires Ruby version >= 1.9.1. (Gem::InstallError) from /Library/Ruby/Site/1.8/rubygems/installer.rb:135: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/bensure_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' 来自 /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
send' 来自 /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' 来自/图书馆/Ruby/Gems/1.8/gems/b undler-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 undler-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
I don't know why it's trying to look in the 1.8 folder with Ruby 1.9.2 installed.我不知道为什么它试图查看安装了 Ruby 1.9.2 的 1.8 文件夹。
What am I doing wrong?我究竟做错了什么?
Your bundle
command is pointing to your system Ruby, type the following to see which Ruby your Bundler is pointed to: head -1 $(which bundle)
Either that needs to be pointed at the Ruby you want to use and/or you need to use the Ruby you want to use to install the Bundler gem (which will put the right shebang line in your bundle
executable).您的bundle
命令指向您的系统 Ruby,键入以下内容以查看您的 Bundler 指向哪个 Ruby: head -1 $(which bundle)
要么需要指向 Z9916D1FC59FE22CC046A2FE1615BC764,要么你需要使用 /使用 Ruby 来安装 Bundler gem(这会将正确的 shebang 行放入您的bundle
可执行文件中)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.