Unable to install sqlite3-ruby on Mac OS X 10.7.5

95 views
Skip to first unread message

natalia.v...@gmail.com

unread,
May 20, 2014, 10:47:16 AM5/20/14
to sqlite...@googlegroups.com
Hello,

   I am trying to install sqlite3-ruby on Mac OS X (v10.7.5).  I get the following error:
> sudo ruby setup.rb config

….

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby /Users/con5pq/sqlite3-ruby/ext/sqlite3/extconf.rb 
setup.rb:472: warning: Insecure world writable dir /usr/local in PATH, mode 040777
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).
*** /Users/con5pq/sqlite3-ruby/ext/sqlite3/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.

…..

    This is strange because mkmf.log says that header is actually found:


have_header: checking for sqlite3.h... -------------------- yes

"cc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I/home/sderle/projects/geocoder/sqlite3-ruby/ext/sqlite3_api -I/usr/local/include  -D_FILE_OFFSET_BITS=64\
  -fno-strict-aliasing -g -g -O2  -fPIC    conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <sqlite3.h>
/* end */

    Can someone please help me with this?  Thank you!

    Natalia


    

Reply all
Reply to author
Forward
0 new messages