1) Implementation
Bundle install--without Development test Rmagick
Result Error:
Gem::installer::extensionbuilderror:error:failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in ' require ': cannot load such FILE--MKMF (loaderror)
from/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in ' require ' from
extconf.rb : 1:in ' <main> '
Gem files would remain installed in/var/lib/gems/1.9.1/gems/json-1.8.1 for inspection.
Results logged to/var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out an
error occurred While installing JSON (1.8.1), and bundler cannot continue.
Make sure that ' gem install json-v ' 1.8.1 ' succeeds before.
After checking, confirm that you need to install Ruby1.9.1-dev.
Perform:
sudo aptitude install Ruby1.9.1-dev
After that, re-execute the above bundle program, or an error, but this time is different:
Gem::installer::extensionbuilderror:error:failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for ruby/thread.h ... no checking for rb_thread_blocking_region () ... yes checking F or RB_WAIT_FOR_SINGLE_FD () ... yes checking for rb_hash_dup () ... yes checking for rb_intern3 () ... yes checking for mysql_qu Ery () in-lmysqlclient. No checking for main () In-lm ... yes checking for mysql_query () in-lmysqlclient ... no checking For main () In-lz ... yes checking for mysql_query () in-lmysqlclient ... no checking for main () In-lsocket ... no checking For mysql_query () in-lmysqlclient ... no checking for main () In-lnsl ... yes checking for mysql_query () in-lmysqlclient. . No checking for main () IN-LMYGCC ... no checking for mysql_query () in-lmysqlclient ... no * * * EXTCONF.RB failed Not create Makefile due to some reason, probably lack of necessary libraries /mysql2/mkmf.log/or headers. Check the Mkmf.log file For more details.
Your may need configuration options.
Check the/var/lib/gems/1.9.1/gems/mysql2-0.3.16/ext/mysql2/mkmf.log and find out:
Have_header:checking for ruby/thread.h ...--------------------no
Need to install
sudo aptitude install Libmysqld-dev
After that, you can then perform the bundle Setup program:
Your Bundle is complete!
Gems in the groups development, test and Rmagick were not installed.
Use ' bundle show [Gemname] ' to the where a bundled gem is installed.