2017-04-19 12 views
12

मैक ओएस एक्स: मैं अपने ऐप के लिए मणि इंस्टॉल करने के लिए बंडल इंस्टॉल का उपयोग कर रहा हूं लेकिन नीचे त्रुटि प्राप्त कर रहा हूं, मैं अपनी मणि फ़ाइल में रूबी '1.9.3', मणि 'रेल', '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]: *** 
[/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o] 
Error 1 
make: *** [x64.release] Error 2 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/ext/libv8/location.rb:36:in 
`block in verify_installation!': libv8 did not install properly, expected binary 
v8 archive 
'/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to 
exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound) 
from 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/ext/libv8/location.rb:35:in 
`each' 
from 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/ext/libv8/location.rb:35:in 
`verify_installation!' 
from 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/ext/libv8/location.rb:26:in 
`install!' 
    from extconf.rb:7:in `<main>' 
GYP_GENERATORS=make \ 
    build/gyp/gyp --generator-output="out" build/all.gyp \ 
        -Ibuild/standalone.gypi --depth=. \ 
        -Dv8_target_arch=x64 \ 
-S.x64 -Dv8_enable_backtrace=1 
-Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 
-Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3 -Dwerror='' 
CXX(target) 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o 
CXX(target) 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o 
CXX(target) 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o 

extconf failed, exit code 1 

Gem files will remain installed in 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/gems/libv8-3.16.14.7 for inspection. 
Results logged to 
/Users/userx/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-16/1.9.1/libv8-3.16.14.7/gem_make.out 

An error occurred while installing libv8 (3.16.14.7), and Bundler 
cannot continue. 
Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling. 
➜ coffeesender git:(sendoso-app) ✗ 

मैं पिछले स्थापित करने के लिए libv8 -v स्थापित त्रुटि मणि में आदेश का सुझाव की कोशिश की '3.16.14.7' लेकिन एक और त्रुटि libv8 त्रुटि स्थापित करने में त्रुटि: मणि देशी विस्तार का निर्माण करने में विफल

+11

क्या होता है जब आप 'gem install libv8 -v' 3.16.14.7 '- --with-system-v8' चलाते हैं http://stackoverflow.com/a/19674065/2675670 – Richard

+0

'प्राप्त करना: libv8-3.16। 14.3.gem (100%) के साथ बिल्डिंग देशी एक्सटेंशन: '--with-प्रणाली-v8' इसमें कुछ समय लग सकता है ... सफलतापूर्वक इंस्टॉल libv8-3.16.14.3 1 मणि स्थापित ' तो मैं बंडल चलाने स्थापित करें और एक ही त्रुटि प्राप्त करें –

+4

चरणों का पालन करने का प्रयास करें, यहां: http://stackoverflow.com/a/25757171/2675670 – Richard

उत्तर

2

पहले मणि मणि 'libv8' है तो '~> 3.16', '> = 3.16.14.7' मणि फ़ाइल में या चलाने मणि स्थापित libv8 -v 3.16.14.7

एक बार जब आप जेन स्थापित या जोड़ चुके हैं, तो बंडल इंस्टॉल करें।

मणि फ़ाइल सफलतापूर्वक जोड़ा जाएगा।

0

भागो

gem install httparty -v '0.13.7'

तो चलाने

bundle install

संबंधित मुद्दे