पर कैपिस्ट्रानो परिनियोजन करते समय नोकोगिरी के बारे में त्रुटि bundle:install
deploy:finalize_update
के बाद चरण, मुझे नोकोगिरी के बारे में त्रुटि मिल रही है। यह चलता है कि यह निम्न त्रुटि देता हैउबंटू सर्वर
** [out :: *******] Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling.
तो मैं server.But पर अपने आप से nokogiri स्थापित करने के लिए कोशिश की,,
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/home/deployer/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-linux-gnu/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-linux-gnu/ports/libxml2/2.8.0/compile.log' to see what happened.
*** 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
--without-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=/home/deployer/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
/home/deployer/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.0/lib/mini_portile.rb:235:in `block in execute': Failed to complete compile task (RuntimeError)
from /home/deployer/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.0/lib/mini_portile.rb:227:in `chdir'
from /home/deployer/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.0/lib/mini_portile.rb:227:in `execute'
from /home/deployer/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.0/lib/mini_portile.rb:61:in `compile'
from /home/deployer/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.0/lib/mini_portile.rb:101:in `cook'
from extconf.rb:101:in `block in <main>'
from extconf.rb:119:in `call'
from extconf.rb:119:in `block in <main>'
from extconf.rb:109:in `tap'
from extconf.rb:109:in `<main>'
Gem files will remain installed in /home/deployer/.rvm/gems/ruby-2.0.0-p0/gems/nokogiri-1.6.0 for inspection.
Results logged to /home/deployer/.rvm/gems/ruby-2.0.0-p0/gems/nokogiri-1.6.0/ext/nokogiri/gem_make.out
यह सिर्फ today.Also libxml2 पहले से स्थापित है शुरू कर दिया।
कोई विचार?
धन्यवाद।
संपादित करें: मुझे अपने रत्न में स्पष्ट रूप से नोकोगिरी की आवश्यकता नहीं है।
मेरे पास एक विचार है: क्या हुआ यह देखने के लिए 'tmp/x86_64-linux-gnu/ports/libxml2/2.8.0/compile.log' की समीक्षा करें। –
:) फ़ाइल मौजूद नहीं है –
मैंने अपनी मणि फ़ाइल में नोकोगिरी जोड़ा और इसका हल हो गया। लेकिन मुझे एक चेतावनी देता है। चेतावनी: Nokogiri LibXML संस्करण 2.9.1 के खिलाफ बनाया गया था, लेकिन गतिशील रूप से लोड किया गया है 2.8.0 –