Note that there are some explanatory texts on larger screens.

plurals
  1. POMySQL and MySQL2 gem builds on host but doesn't build via Capistrano or SSH
    text
    copied!<p>I'm trying to deploy a Rails app that uses Bundler via Capistrano.</p> <p>Running <code>cap deploy:cold</code> gives this:</p> <pre><code>** [out :: (my host)] Installing mysql2 (0.2.6) ** [out :: (my host)] with native extensions *** [err :: (my host)] /usr/lib64/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) *** [err :: (my host)] *** [err :: (my host)] /usr/bin/ruby extconf.rb *** [err :: (my host)] checking for rb_thread_blocking_region()... no *** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no *** [err :: (my host)] checking for main() in -lm... yes *** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no *** [err :: (my host)] checking for main() in -lz... yes *** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no *** [err :: (my host)] checking for main() in -lsocket... no *** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no *** [err :: (my host)] checking for main() in -lnsl... yes *** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no *** [err :: (my host)] checking for main() in -lmygcc... no *** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no *** [err :: (my host)] *** extconf.rb failed *** *** [err :: (my host)] Could not create Makefile due to some reason, probably lack of *** [err :: (my host)] necessary libraries and/or headers. Check the mkmf.log file for more *** [err :: (my host)] details. You may need configuration options. </code></pre> <p>Just install the mysql-dev packages or something right? Not quite because the gems (mysql and mysql2) both build on the machine with Bundler without any issues, plus the other gems install without any issue.</p> <p>What does Capistrano do that is different?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload