gem install sqlite3-ruby
如果提示:
Building native extensions. This could take a while…
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/home/wangjian/wjhome/soft/ruby187/bin/ruby extconf.rb
checking for sqlite3.h… no
Building native extensions. This could take a while…ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension.
/home/wangjian/wjhome/soft/ruby187/bin/ruby extconf.rbchecking for sqlite3.h… no
是因为没有安装sqlite3开发包,在Ubuntu中使用新立得安装libsqlite3-dev包。