linux mageia 2捆绑安装错误

时间:2012-09-04 19:13:04

标签: ruby-on-rails-3.1

尽管使用了本论坛中陈述的所有方法,但我收到以下错误。我正在运行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.

2 个答案:

答案 0 :(得分:3)

在64位Mageia系统上,您必须使用

urpmi lib64sqlite3-devel

答案 1 :(得分:0)

问题对您的环境的信息有限,例如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 sqlite3bundle命令。