Heroku Taps 加载错误
我正在尝试使用 Heroku Taps,但在“gem install taps”之后,当我执行“heroku db:pull”时,我仍然收到以下错误:
heroku db:pull
Taps Load Error: dlopen(/Users/yves/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.bundle, 9): no suitable image found. Did find:
/Users/yves/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.bundle: mach-o, but wrong architecture - /Users/yves/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.bundle
You may need to install or update the taps gem to use db commands.
我的设置:
Homebrew
RVM
rvm list
rvm rubies
jruby-1.5.1 [ x86_64-java ]
ree-1.8.7-2010.02 [ i386 ]
ruby-1.8.7-p160 [ i386 ]
=> ruby-1.8.7-p302 [ i386 ]
ruby-head [ i386 ]
GEMS
gem list
...
heroku (1.17.10)
...
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
taps (0.3.15)
...
I'm trying to use Heroku Taps but after "gem install taps", I'm still getting the following error when I do "heroku db:pull":
heroku db:pull
Taps Load Error: dlopen(/Users/yves/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.bundle, 9): no suitable image found. Did find:
/Users/yves/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.bundle: mach-o, but wrong architecture - /Users/yves/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.bundle
You may need to install or update the taps gem to use db commands.
My setup:
Homebrew
RVM
rvm list
rvm rubies
jruby-1.5.1 [ x86_64-java ]
ree-1.8.7-2010.02 [ i386 ]
ruby-1.8.7-p160 [ i386 ]
=> ruby-1.8.7-p302 [ i386 ]
ruby-head [ i386 ]
GEMS
gem list
...
heroku (1.17.10)
...
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
taps (0.3.15)
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我想我已经解决了。我再次使用 RVM 安装了 ruby 1.8.7,这似乎成功了。虽然不知道为什么...
Ok, think I solved it. I installed ruby 1.8.7 again with RVM and that seemed to do the trick. Not sure why though...
该错误消息表明 Heroku 捆绑包包含与 i386 架构不兼容的本机版本 sqlite gem。
尝试做一个
gem update sqlite3 sqlite3-ruby
更新:在我的Mac OS X Snow Leopard机器上,我使用rvm来管理ruby 1.9.2和rails 3.0.3,但是我使用系统安装的ruby 1.8.7 适用于 ruby 1.9 和 Rails 2.3.8。发展。我通过使用“rvm system”和“rvm default”在 ruby 1.8 和 1.9 之间切换(我在 rvm 中将 1.9.2 设置为默认值。
我注意到当我运行“rvm system”时,我得到以下信息:
希望这有帮助。
The error message indicates that the Heroku bundle includes a native version sqlite gem that is not compatible with the i386 architecture.
Try to do a
gem update sqlite3 sqlite3-ruby
Updated: On my Mac OS X Snow Leopard machine, I use rvm to manage ruby 1.9.2 and rails 3.0.3, but I use the system installed ruby 1.8.7 for ruby 1.9 and rails 2.3.8. development. I switch between ruby 1.8 and 1.9 by using 'rvm system' and 'rvm default' (I set up 1.9.2 as my default in rvm.
I noticed when I am running 'rvm system', I get the following:
Hope this helps.