[email protected]:~# which ruby
/usr/local/bin/ruby
[email protected]:~# which gem
/usr/local/bin/gem
[email protected]:~# ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
[email protected]:~# gem -v
1.7.2
[email protected]:~#
[email protected]:~# gem install bundler
Successfully installed bundler-1.0.12
1 gem installed
......
[email protected]:~/www/blog# bundle install
Fetching source index for http://rubygems.org/
......
Installing sqlite3 (1.3.3) with native extensions /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)gem install sqlite3的作品,捆绑安装不?
/usr/local/bin/ruby extconf.rb
Gem files will remain installed in /root/www/blog/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.3 for inspection. Results logged to /root/www/blog/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:511:in
block in build_extensions' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in
each' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:inbuild_extensions' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:159:in
install' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/source.rb:96:ininstall' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/installer.rb:55:in
block in run' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:inblock in each' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:in
each' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:ineach' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/installer.rb:44:in
run' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/installer.rb:8:ininstall' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/cli.rb:225:in
install' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/thor/task.rb:22:inrun' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/thor/invocation.rb:118:in
invoke_task' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/thor.rb:246:indispatch' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/thor/base.rb:389:in
start' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/bin/bundle:13:in<top (required)>' from /usr/local/bin/bundle:19:in
load' from /usr/local/bin/bundle:19:in `'