我正在尝试安装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) 我无法在Yosemite 10.10上安装therubyracer gem.
这是日志:
11:53 $ gem install libv8 -v '3.16.14.3' -- --with-system-v8
Building native extensions with: '--with-system-v8'
This could take a while...
Successfully installed libv8-3.16.14.3
Parsing documentation for libv8-3.16.14.3
Installing ri documentation for libv8-3.16.14.3
Done installing documentation for libv8 after 0 seconds
1 gem installed
02:05 $ gem install therubyracer -v '0.12.1' -- --with-system-v8
Building native extensions with: '--with-system-v8'
This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/usr/local/var/rbenv/versions/2.1.2/bin/ruby extconf.rb --with-system-v8
checking … 我已经在Windows上安静地开发了几周没有添加任何宝石,今天我决定进行捆绑更新,但我无法通过这个名为therubyracer的宝石.我安装了devkit,它正在根据文档的验证程序工作.
我的问题是:有没有办法在Windows上安装这个宝石?
这个gem是否需要rails 3.1,这就是为什么现在我进行捆绑更新它会被"滑入"rails 3.0.8作为未来3.1迁移的早期启动手势?
# Gemfile
# source 'http://rubygems.org'
source :rubygems
gem 'rails'
gem 'rake', '0.8.7'
gem 'youtube_it'
gem 'panda'
gem "nifty-generators"
# gem "mongoid", "2.0.0.rc.7"
gem "mongoid"
gem "mongoid-eager-loading"
# gem 'mongoid_search'
gem "bson_ext", ">1.1.5"
gem 'devise'
gem 'cancan'
gem 'hirb'
# gem 'heroku'
gem 'rest-client'
gem 'less' # needs the more plugin
# gem 'hash_extension'
gem 'aws-s3', :require => 'aws/s3' # s3.rb
gem 'jquery-rails', ">= 0.2.7" # rails g jquery:install
# gem 'mongrel', ">= 1.2.0.pre2"
gem …Run Code Online (Sandbox Code Playgroud) MAC OS X:我正在使用bundle install为我的应用程序安装gem但是得到错误以下我在我的gem文件中使用ruby'1.9.3',gem'trail','3.2.12'..
Installing gmail_xoauth 0.4.1
Installing omniauth 1.3.1
Installing httparty 0.13.7
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/userx/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -r
./siteconf20170420-57041-h8rx0n.rb extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.12
Using compiler: /usr/bin/c++ (clang version 8.1.0)
../src/bignum.cc:761:7: error: variable 'i' is incremented both in the loop
header and in the loop body [-Werror,-Wfor-loop-analysis]
++i;
^
../src/bignum.cc:756:72: note: incremented here
for (int i = other.used_digits_ + exponent_diff; i < used_digits_; ++i) {
^
1 error generated.
make[1]: …Run Code Online (Sandbox Code Playgroud) 有什么想法/建议吗?
****进一步更新:****2.3.1 agxxx-xxxight 2290-fix-claim-button%ruby -e'put Gem :: Platform.local'x86_64-darwin-13
我有2台机器,我试图获得lib v8 ....现在得到相同的错误(无论darwin v.)
1 mac桌面(x86_64-darwin-13,但另一个与darwin-16).最初,我认为问题与darwin-13有关,但现在无论如何都会遇到同样的问题).
我已经尝试了一些重新安装和升级OSX和xcode的解决方案.
Mac OX Sierra 10.12.3 xcode 8.2.1
我看到类似的堆栈溢出,但提到rubyracer并不确定这是否与此相关? 安装libv8时出错:错误:无法构建gem本机扩展
这是我的错误:
gem install libv8 -v'5.3.332.38.1'构建本机扩展.这可能需要一段时间...错误:安装libv8时出错:错误:无法构建gem本机扩展.
current directory: /Users/axxxsmith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/libv8-5.3.332.38.1/ext/libv8
/Users/axxxsmith/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20170209-5158-fzzx9o.rb extconf.rb
creating Makefile
Error: Command 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s v8/buildtools/mac/clang-format.sha1' returned non-zero exit status 1 in /Users/axxxsmith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/libv8-5.3.332.38.1/vendor
Running: gclient root
Running: gclient config --spec 'solutions = [
{
"managed": False,
"name": "v8",
"url": "https://chromium.googlesource.com/v8/v8.git",
"custom_deps": {},
"deps_file": "DEPS",
"safesync_url": "",
},
]
' …Run Code Online (Sandbox Code Playgroud) 所以我有这个问题,其中libv8-3.16.14.3无法安装,即使它欺骗性地告诉你它确实安装.
所以问题的第一个迹象就是:
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
Run Code Online (Sandbox Code Playgroud)
期间bundle install.所以我做了一些谷歌搜索,并遇到了这个响应,运行时:
gem install libv8 -v '3.16.14.3' -- --with-system-v8
Building native extensions with: '--with-system-v8'
This could take a while...
Successfully installed libv8-3.16.14.3
Parsing documentation for libv8-3.16.14.3
Done installing documentation for libv8 after 1 seconds
1 gem installed
Run Code Online (Sandbox Code Playgroud)
引导您认为它有效.但bundle install再次运行,看到有问题的错误是:
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot continue. …Run Code Online (Sandbox Code Playgroud) 运行捆绑安装后,我收到此错误:
Gem::Package::FormatError: no metadata found in /Users/jeanosorio/.rvm/gems/ruby-1.9.3-p286/cache/libv8-3.11.8.13-x86_64-darwin-12.gem
An error occurred while installing libv8 (3.11.8.13), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.11.8.13'` succeeds before bundling.
Run Code Online (Sandbox Code Playgroud)
我试着用
gem install libv8 -v '3.11.8.13'
Run Code Online (Sandbox Code Playgroud)
但我明白了
ERROR: Error installing libv8:
invalid gem format for /Users/jeanosorio/.rvm/gems/ruby-1.9.3-p286/cache/libv8-3.11.8.13-x86_64-darwin-12.gem
Run Code Online (Sandbox Code Playgroud)
这里有什么问题.请帮忙.
在Windows 7(64位)上的Rally App SDK 2.0p环境设置期间出现问题.我从rubyinstaller.org安装了Ruby 1.8.7-p358并设法安装了rake Ruby gem.但我在安装jslint-v8 gem时遇到问题.它依赖于therubyracer和libv8 gems,需要使用Ruby DevKit构建.在安装过程中,我收到以下错误:
C:\ruby> gem install jslint-v8
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing jslint-v8:
ERROR: Failed to build gem native extension.
C:/ruby/bin/ruby.exe extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options: …Run Code Online (Sandbox Code Playgroud)