Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby bundle安装尝试编译已安装的libv8 gem_Ruby_Macos_Gem_Libv8 - Fatal编程技术网

Ruby bundle安装尝试编译已安装的libv8 gem

Ruby bundle安装尝试编译已安装的libv8 gem,ruby,macos,gem,libv8,Ruby,Macos,Gem,Libv8,在客户端的Ruby项目上进行捆绑安装时,我遇到以下错误: An error occurred while installing libv8 (3.16.14.3), and Bundler cannot continue. 然而,当我列出gem列表时,该gem和版本显然已经存在: $ gem list *** LOCAL GEMS *** ... libv8 (3.16.14.3) ... 注意:bundle安装在我将OSX从Mavericks更新到Yosemite之前一直有效。为了让li

在客户端的Ruby项目上进行捆绑安装时,我遇到以下错误:

An error occurred while installing libv8 (3.16.14.3), and Bundler
cannot continue.
然而,当我列出gem列表时,该gem和版本显然已经存在:

$ gem list

*** LOCAL GEMS ***
...
libv8 (3.16.14.3)
...
注意:bundle安装在我将OSX从Mavericks更新到Yosemite之前一直有效。为了让libv8gem能够使用

为什么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

那么,用户的Ruby环境是如何设置的呢?运行gem env并将输出附加到问题中。设置格式使其可读。此问题的答案与以下问题的答案相同:[Link][1][1]: