Rails3 cap deploy error

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

installing nokogiri works fine in all rvm gemsets…help


Look at the file


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 content is this:
/usr/local/rvm/rubies/ruby-1.9.3-p484/bin/ruby extconf.rb

ill dblcheck for missing libs now


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