Ruby on Rails 3 を RHEL 6 にインストールしようとしています。sqlite と sqlite-devel (RHEL6 では sqlite3) を「yum install」しました。ご覧のとおり、必要な場所に sqlite3.h が存在します。「gem install sqlite3-ruby」は、何らかの理由でまだ機能しません。
SQLite3:
[root@rhel6base gems]# yum list sqlite-devel
Installed Packages
sqlite-devel.x86_64 3.6.20-1.el6 @local
Available Packages
sqlite-devel.i686 3.6.20-1.el6 local
[root@rhel6base gems]# ls -l /usr/include/sqlite3.h
-rw-r--r--. 1 root root 268966 Nov 24 2009 /usr/include/sqlite3.h
宝石のインストール:
[root@rhel6base gems]# gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite3-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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/ruby
--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/lib64/ruby/gems/1.8/gems/sqlite3-1.3.3 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out
PS: 「rhel6」タグを作成するのは確かに良いことですが、私には十分な評判がありません。