[問題] 請問大家在安裝 sqlite3-ruby

看板Ruby作者 (mimi)時間18年前 (2006/11/17 01:08), 編輯推噓4(403)
留言7則, 4人參與, 最新討論串1/2 (看更多)
剛剛試著安裝 sqlite3-ruby 使用gem...... 結果~出現這樣的錯誤~ Building native extensions. This could take a while... *** 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 ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension. Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0 for inspection. 查了一下google搞不清楚解決的方法~ 請問各位有經驗的人 我應該從哪裡去解決這個問題呢~ 感謝~ -- ▁▁ ▕寧寧▏ ▕肥肥▏  ̄ ̄ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.162.79.47

11/17 07:20, , 1F
作業系統?
11/17 07:20, 1F

11/17 08:24, , 2F
抱歉~補上 ...ubuntu6.06
11/17 08:24, 2F

11/17 08:57, , 3F
apt-get install libdbd-sqlite3-ruby1.8
11/17 08:57, 3F

11/17 12:03, , 4F
情況還是一樣呢? 還是有什麼其他建議?(裝別的 sql ?)
11/17 12:03, 4F

11/17 12:10, , 5F
裝 PostgreSQL XD 我只試過這個
11/17 12:10, 5F

11/17 12:11, , 6F
btw, 你有看 mkmf.log 嗎?
11/17 12:11, 6F

12/30 14:27, , 7F
Try: apt-get install build-essential
12/30 14:27, 7F
文章代碼(AID): #15N9iWmT (Ruby)
文章代碼(AID): #15N9iWmT (Ruby)