Rails3 cap deploy error

  • executing “cd /apps/myapp_com/staging/releases/20140114124030 &&
    bundle
    install --gemfile
    /apps/myapp_com/staging/releases/20140114124030/Gemfile
    –path /apps/myapp_com/staging/shared/bundle --deployment --quiet
    –without
    development test”
    servers: [“162.243.115.238”]
    [162.243.115.238] executing command
    ** [out :: 162.243.115.238] Gem::Installer::ExtensionBuildError: ERROR:
    Failed to build gem native extension.
    ** [out :: 162.243.115.238]
    ** [out :: 162.243.115.238]
    /usr/local/rvm/rubies/ruby-1.9.3-p484/bin/ruby
    extconf.rb
    ** [out :: 162.243.115.238]
    ** [out :: 162.243.115.238] Gem files will remain installed in
    /apps/myapp_com/staging/shared/bundle/ruby/1.9.1/gems/nokogiri-1.6.1 for
    inspection.
    ** [out :: 162.243.115.238] Results logged to
    /apps/myapp_com/staging/shared/bundle/ruby/1.9.1/gems/nokogiri-1.6.1/ext/nokogiri/gem_make.out
    ** [out :: 162.243.115.238] An error occurred while installing nokogiri
    (1.6.1), and Bundler cannot
    ** [out :: 162.243.115.238]
    ** [out :: 162.243.115.238] continue.
    ** [out :: 162.243.115.238]
    ** [out :: 162.243.115.238] Make sure that gem install nokogiri -v '1.6.1' succeeds before bundling.
    ** [out :: 162.243.115.238]
    command finished in 112506ms
    *** [deploy:update_code] rolling back

installing nokogiri works fine in all rvm gemsets…help

thx

Look at the file

/apps/myapp_com/staging/shared/bundle/ruby/1.9.1/gems/nokogiri-1.6.1/ext/nokogiri/gem_make.out

If you can not figure out what the problem is, post that file here.

Double check you have libxml2-dev and libxslt-dev packages installed on
your staging server… Nokogiri won’t build without them available on
the
machine.

the content is this:
/usr/local/rvm/rubies/ruby-1.9.3-p484/bin/ruby extconf.rb

ill dblcheck for missing libs now

thx

On Tue, Jan 14, 2014 at 9:05 AM, James Turley <

libs are up to date

On Tue, Jan 14, 2014 at 9:05 AM, James Turley <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs