我试图在我的Ubuntu 10.10中为ruby安装sqlite3接口 但我得到以下错误的任何建议?
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:3:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:3
my rails and related versions are as follows:-
saran@ubuntu:~$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
saran@ubuntu:~$ gem -v
1.3.7
saran@ubuntu:~$ rails -v
Rails 3.0.1
saran@ubuntu:~$ sqlite3 --version
3.7.2
saran@ubuntu:~$
答案 0 :(得分:3)
试试这个:
sudo apt-get install libsqlite3-dev ruby-dev
然后尝试安装gem。