0

このフォーラムに記載されているすべての方法を使用しているにもかかわらず、次のエラーが発生します。私は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.
4

2 に答える 2

3

64 ビットの Mageia システムでは、

urpmi lib64sqlite3-devel
于 2012-09-29T15:11:15.350 に答える
0

質問には、ルビーのバージョンや最初のコマンドが何であったかなど、環境に関する限られた情報があります。そのため、この回答は不完全である可能性があります。

エラーは次のように述べています。

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

これがsqlite3gemがインストールされていない理由です。Makeはsqlite3ヘッダーファイルを見つけることができません。私はMageiaLinxuxディストリビューションに精通していませんが、Mandrivaに基づいているようです。エラーメッセージの指示に従って実行すると、次のようになります。

yum install sqlite-devel

gem install sqlite3sqlite-develがインストールされ、元のコマンドまたはコマンドを実行できるようになりますbundle

于 2012-09-04T21:26:45.133 に答える