尽管使用了本论坛中所述的所有方法,但我还是得到了以下错误。我运行的是mageia 2 linux
Installing sqlite3 (1.3.6) with native extensions /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... no
sqlite3 is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-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.发布于 2012-09-29 23:11:15
在64位的Mageia系统上,您必须使用
urpmi lib64sqlite3-devel发布于 2012-09-05 05:26:45
这个问题对你的环境的信息是有限的,比如ruby版本和你的初始命令。因此,这个答案可能是不完整的。
错误状态为:
checking for sqlite3_libversion_number() in -lsqlite3... no sqlite3 is missing.
这就是sqlite3 gem没有安装的原因。Make找不到sqlite3头文件。我不熟悉Mageia Linxux发行版,但它似乎是基于Mandriva的。我相信如果您按照错误消息中的说明运行:
yum install sqlite-devel
将安装sqlite-devel,您将能够执行原始的gem install sqlite3或bundle命令。
https://stackoverflow.com/questions/12269894
复制相似问题