Installing sqlite3 with native extensions ERROR: Failed to build gem native ext


Installing sqlite3 (1.3.4) with native extensions /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:529:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/opt/ruby-enterprise-1.8.7-2011.03/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite3-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.


解决方案

apt-get install libsqlite3-dev

版权声明:本文为Robin2Wu原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。