luislavena/sqlite3-ruby — Issue #57: error when update to 1.3.5
Author: jnozsc
Created: 2011-12-04 14:09:46+00:00
State: open

error log:

/usr/local/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}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/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
--enable-local
--disable-local
/usr/local/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:970:in `block in find_header'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /usr/local/lib/ruby/1.9.1/mkmf.rb:969:in `find_header'
from extconf.rb:34:in `

'

environment:

Johns-MacBook-Pro:~ jnozsc$ ruby -v
ruby 1.9.3p0 (2011-10-30) [x86_64-darwin11.2.0]
Johns-MacBook-Pro:~ jnozsc$ which gcc
/usr/bin/gcc
Johns-MacBook-Pro:~ jnozsc$ which llvm-gcc-4.2
/usr/bin/llvm-gcc-4.2
Johns-MacBook-Pro:~ jnozsc$ which gcc-4.2 // Xcode 4.2 install llvm-gcc-4.2 instead of gcc-4.2, so nothing return here
Johns-MacBook-Pro:~ jnozsc$