1

在执行bundle install客户的 Ruby 项目时,我收到此错误:

An error occurred while installing libv8 (3.16.14.3), and Bundler
cannot continue.

但是,当我这样做时gem list,该 gem 和版本显然已经存在:

$ gem list

*** LOCAL GEMS ***
...
libv8 (3.16.14.3)
...

注意:bundle install在我将 OSX 从 Mavericks 更新到 Yosemite 之前一直有效。我必须使用“如何在 10.10 Yosemite 上安装 therubyracer gem? ”来解决 libv8 gem 编译问题。

为什么 bundle 试图重新编译已经安装的东西,我该如何解决这个问题?

更新:环境

$ gem env RubyGems Environment:
  - RUBYGEMS VERSION: 2.4.5
  - RUBY VERSION: 2.2.0 (2014-12-25 patchlevel 0) [x86_64-darwin14]
  - INSTALLATION DIRECTORY: /Users/me/.rvm/gems/ruby-2.2.0
  - RUBY EXECUTABLE: /Users/me/.rvm/rubies/ruby-2.2.0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/me/.rvm/gems/ruby-2.2.0/bin
  - SPEC CACHE DIRECTORY: /Users/me/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/me/.rvm/rubies/ruby-2.2.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-14
  - GEM PATHS:
     - /Users/me/.rvm/gems/ruby-2.2.0
     - /Users/me/.rvm/gems/ruby-2.2.0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/me/.rvm/gems/ruby-2.2.0/bin
     - /Users/me/.rvm/gems/ruby-2.2.0@global/bin
     - /Users/me/.rvm/rubies/ruby-2.2.0/bin
     - /usr/local/sbin
     - /Applications/Postgres93.app/Contents/MacOS/bin
     - /Applications/My Applications/redis-2.6.7/src
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /opt/X11/bin
     - /usr/local/git/bin
     - /usr/local/go/bin
     - /Users/me/Documents/projects/Go/bin
     - /Users/me/.rvm/bin
4

0 回答 0