2012-09-04 76 views
0

尽管使用本论坛中陈述的所有方法,但出现以下错误。我正在mageia 2 Linux的捆绑安装错误与Linux mageia 2

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. 

回答

0

的quesiton拥有有限的环境的信息,如红宝石版本和你的初始命令了。因为这个答案可能不完整。

的错误状态:

checking for sqlite3_libversion_number() in -lsqlite3... no sqlite3 is missing.

这就是sqlite3的宝石不安装的原因。 Make找不到sqlite3头文件。我不熟悉Mageia Linxux发行版,但它似乎是基于Mandriva。我相信,如果你按照错误消息的说明和运行:

yum install sqlite-devel

的sqlite-devel的将安装,您将能够执行原来的gem install sqlite3bundle命令。

+0

感谢。有效。但对于我使用的mageia(urpmi sqlite-devel而不是yum install)确定,这将用于具有类似分布的其他人。 –

+0

很高兴为你工作。请将答案标记为已接受。 – nathan

3

在64位Mageia系统,你有这么多使用

urpmi lib64sqlite3-devel