相关疑难解决方法(0)

在OS X 10.9+上安装libv8 gem

我正在尝试安装libv8 3.16.14.3,但使用最新的稳定rvm和ruby-1.9.3-p125在OSX Mavericks上出错.

这是运行命令'gem install libv8'的输出:

~/src(branch:master) » gem install libv8
Fetching: libv8-3.16.14.3.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
  ERROR: Failed to build gem native extension.

    /Users/me/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported …
Run Code Online (Sandbox Code Playgroud)

gem rubygems libv8 osx-mavericks osx-yosemite

203
推荐指数
9
解决办法
8万
查看次数

安装libv8 3.11.8.3时出错

我正在运行全新安装的OSX 10.9 Mavericks和XCode 5.0.1.当我试图在我的项目中运行bundle install时,它无法安装libv8 gem.这是输出:

ERROR:  Error installing libv8:
        ERROR: Failed to build gem native extension.

        /Users/user1/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
    creating Makefile
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
    Unable to find a compiler officially supported by v8.
    It is recommended to use GCC v4.4 or higher
    Using compiler: g++
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/user1/.rvm/gems/ruby-1.9.3-p448/gems/libv8-3.11.8.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols
    In file included from ../src/accessors.cc:28:
    In file included from ../src/v8.h:60:
    In file included from ../src/objects-inl.h:38:
    In file included from ../src/elements.h:33:
    In file included from ../src/heap.h:41:
    ../src/store-buffer.h:229:9: error: private …
Run Code Online (Sandbox Code Playgroud)

ruby macos gcc libv8 osx-mavericks

7
推荐指数
2
解决办法
3803
查看次数

标签 统计

libv8 ×2

osx-mavericks ×2

gcc ×1

gem ×1

macos ×1

osx-yosemite ×1

ruby ×1

rubygems ×1