rails3 cap deploy error

31 views
Skip to first unread message

tom

unread,
Jan 14, 2014, 7:45:25 AM1/14/14
to Ruby on Rails: Talk
  * 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

jsnark

unread,
Jan 14, 2014, 8:41:33 AM1/14/14
to rubyonra...@googlegroups.com
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.

James Turley

unread,
Jan 14, 2014, 9:05:41 AM1/14/14
to rubyonra...@googlegroups.com
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.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/365c5e50-e51d-4622-aa0b-dd29a6b5f369%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

tom

unread,
Jan 14, 2014, 12:09:34 PM1/14/14
to Ruby on Rails: Talk
the content is this:
/usr/local/rvm/rubies/ruby-1.9.3-p484/bin/ruby extconf.rb


ill dblcheck for missing libs now

thx



tom

unread,
Jan 14, 2014, 12:11:18 PM1/14/14
to Ruby on Rails: Talk
libs are up to date



On Tue, Jan 14, 2014 at 9:05 AM, James Turley <jamestu...@googlemail.com> wrote:
Reply all
Reply to author
Forward
0 new messages