2012-01-27 13 views
12

मैंने अपने मणि फ़ाइल में मणि 'सनस्पॉट_राइल्स' जोड़ा है और बंडल इंस्टॉल चलाया है। मैं libv8 स्थापित करने में त्रुटियों हो रही किया गया है और त्रुटि संदेश इस प्रकार है:बंडल इंस्टॉल/रेलवे पर libv8 (3.3.10.4) स्थापित करने में त्रुटि (शेर पर चल रहा है)

Installing libv8 (3.3.10.4) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

     /opt/local/bin/ruby 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: 
    --with-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/opt/local/bin/ruby 
extconf.rb:13: uninitialized constant Gem (NameError) 
Checking for Python... 

Gem files will remain installed in /Users/sonyakim/.rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.4 for inspection. 
Results logged to /Users/sonyakim/.rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.4/ext/libv8/gem_make.out 
An error occured while installing libv8 (3.3.10.4), and Bundler cannot continue. 
Make sure that `gem install libv8 -v '3.3.10.4'` succeeds before bundling. 

जब मैं मणि libv8 -v स्थापित चलाने '3.3.10.4', निम्न त्रुटि संदेश छपा है:

Building native extensions. This could take a while... 
ERROR: Error installing libv8: 
    ERROR: Failed to build gem native extension. 

     /opt/local/bin/ruby 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: 
    --with-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/opt/local/bin/ruby 
extconf.rb:13: uninitialized constant Gem (NameError) 
Checking for Python... 

Gem files will remain installed in /Users/sonyakim/.rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.4 for inspection. 
Results logged to /Users/sonyakim/.rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.4/ext/libv8/gem_make.out 

मैं libv8 को ठीक से कैसे स्थापित कर सकता हूं?

+0

'gem' किस संस्करण का उपयोग कर रहे हैं? 'gem -v' – tadman

+0

संस्करण 1.8.15 का उपयोग कर रहा हूँ – user1173832

उत्तर

28

फोर्स extconf.rb फ़ाइल पर rubygems की आवश्यकता के लिए स्थापित:

RUBYOPT=-rrubygems gem install libv8 -v '3.3.10.4' 

यहाँ मिला: https://coderwall.com/p/y1djxq

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