libv8 和 rails 的捆绑安装问题 [英] bundle install issue with libv8 and rails
问题描述
我在使用 ruby 1.9.3p0(2011-10-30 修订版 33570)[x86_64-darwin10.8.0] 的 libv8
gem 时遇到问题.gem install libv8 工作正常,我有
gem 'therubyracer'
在我的 Gemfile
中,这依赖于 libv8
,它是在我执行 bundle install
时安装的:
但是当我跑步时:
<上一页>$ 导轨在任何来源中都找不到 libv8-3.3.10.4运行 `bundle install` 来安装缺失的 gem.找不到 libv8
- 这是 32/64 位问题吗?如果是这样,我该如何解决?
我怀疑这是因为我的 32/64 位不匹配.
我用以下方法解决了这个问题:
<上一页>$ irbruby-1.9.3-p0 :001 > `gem list`.each_line {|line|`sudo env ARCHFLAGS="-arch x86_64" gem install #{line.split.first}`I'm having issues with the libv8
gem with ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]. gem install libv8 works fine and I have
gem 'therubyracer'
in my Gemfile
and this has a dependency on libv8
which is installed when I do a bundle install
:
$ bundle exec gem list *** LOCAL GEMS *** actionmailer (3.1.3) actionpack (3.1.3) ... libv8 (3.3.10.4 x86_64-darwin-10) ...
but when I run:
$ rails s Could not find libv8-3.3.10.4 in any of the sources Run `bundle install` to install missing gems.
it can't find libv8
- is this is a 32/64 bit issue? If so, how do I solve it?
I suspect this was because I had a 32/64 bit mismatch.
I solved this with the following:
$ irb ruby-1.9.3-p0 :001 > `gem list`.each_line {|line| `sudo env ARCHFLAGS="-arch x86_64" gem install #{line.split.first}`
这篇关于libv8 和 rails 的捆绑安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!