2011-04-07 111 views
1

我正在使用Ruby進行敏捷Web開發中描述的設置過程,並且我在安裝sqlite3 gem時遇到了困難。我有Ruby版本1.9.2和gem版本1.7.2在os x 10.5.8上安裝,當我運行時在leopard上安裝sqlite3 gem時遇到困難

sudo gem install sqlite3 

我收到此錯誤消息。有什麼建議麼?我很感激提前的幫助。

Building native extensions. This could take a while... 
ERROR: Error installing sqlite3: 
    ERROR: Failed to build gem native extension. 

     /usr/local/bin/ruby extconf.rb 
checking for sqlite3.h... yes 
checking for sqlite3_libversion_number() in -lsqlite3... yes 
checking for rb_proc_arity()... yes 
checking for sqlite3_initialize()... no 
sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade! 
*** 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. 

Provided configuration options: 
    --with-opt-dir 
    --without-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/usr/local/bin/ruby 
    --with-sqlite3-dir 
    --without-sqlite3-dir 
    --with-sqlite3-include 
    --without-sqlite3-include=${sqlite3-dir}/include 
    --with-sqlite3-lib 
    --without-sqlite3-lib=${sqlite3-dir}/lib 
    --with-sqlite3lib 
    --without-sqlite3lib 


Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3 for inspection. 
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out 
+0

的可能重複[sqlite3的寶石安裝失敗(HTTP: //stackoverflow.com/questions/5025680/sqlite3-gem-fails-to-install) – fl00r 2011-04-07 20:18:42

回答