rubyからsqliteにアクセスできるようにgem install sqlite3を試したのですができませんでした。
以下のようなエラーが出ます
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for sqlite3.h... *** 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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/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}/
/usr/share/ruby/mkmf.rb:434:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/share/ruby/mkmf.rb:565:in
try_cpp'
from /usr/share/ruby/mkmf.rb:1097:in block in find_header' from /usr/share/ruby/mkmf.rb:895:in
block in checking_for'
from /usr/share/ruby/mkmf.rb:340:in block (2 levels) in postpone' from /usr/share/ruby/mkmf.rb:310:in
open'
from /usr/share/ruby/mkmf.rb:340:in block in postpone' from /usr/share/ruby/mkmf.rb:310:in
open'
from /usr/share/ruby/mkmf.rb:336:in postpone' from /usr/share/ruby/mkmf.rb:894:in
checking_for'
from /usr/share/ruby/mkmf.rb:1096:in find_header' from extconf.rb:30:in
<main>'
Gem files will remain installed in /usr/local/share/gems/gems/sqlite3-1.3.10 for inspection.
Results logged to /usr/local/share/gems/gems/sqlite3-1.3.10/ext/sqlite3/gem_make.out