Heroku Taps 加载错误

发布于 2024-10-15 01:13:22 字数 932 浏览 2 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

街道布景 2024-10-22 01:13:22

好吧,我想我已经解决了。我再次使用 RVM 安装了 ruby​​ 1.8.7,这似乎成功了。虽然不知道为什么...

rvm install ruby-1.8.7-p302

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...

rvm install ruby-1.8.7-p302
泅人 2024-10-22 01:13:22

该错误消息表明 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”时,我得到以下信息:

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ rails -v
Rails 2.3.8
$ gem list --local | grep taps
taps (0.3.15, 0.3.12, 0.3.10, 0.2.26, 0.2.25)
$ gem list --local | grep sqlite
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3, 1.3.1, 1.2.5, 1.2.4)

希望这有帮助。

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:

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ rails -v
Rails 2.3.8
$ gem list --local | grep taps
taps (0.3.15, 0.3.12, 0.3.10, 0.2.26, 0.2.25)
$ gem list --local | grep sqlite
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3, 1.3.1, 1.2.5, 1.2.4)

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文