`

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics