在客户端的Ruby项目上执行bundle install
时,我收到此错误:
An error occurred while installing libv8 (3.16.14.3), and Bundler
cannot continue.
然而,当我gem list
时,那个宝石和版本显然已经存在了:
$ gem list
*** LOCAL GEMS ***
...
libv8 (3.16.14.3)
...
注意:bundle install
过去一直有效,直到我将OSX从Mavericks更新到Yosemite。我必须做一个解决方法,以便使用“How to install therubyracer gem on 10.10 Yosemite?”
为什么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