2012-09-04 74 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