我有一個關於使用sqlite的merb依賴關係的問題。我將在我的m/c上安裝merb,並且我的m/c上沒有安裝sqlite。我試過這個命令「gem install merb」,看到下面的錯誤。如果有什麼辦法可以用mysql安裝merb請告訴我。merb需要merb嗎?
Building native extensions. This could take a while... ERROR: Error installing merb: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb checking for sqlite3.h... no * 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/bin/ruby1.8 --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/do_sqlite3-0.10.2 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/do_sqlite3-0.10.2/ext/do_sqlite3/gem_make.out
感謝馬特的回覆。 – mayank 2010-06-11 05:30:41
@mayank如果該答案是有用的,請upvote和驗證它。 – Shikiryu 2013-04-11 13:48:59