When I run

   sudo gem install do_sqlite3

I get the following output:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_open() in -lsqlite3... yes
checking for sqlite3_prepare_v2()... yes
checking for sqlite3_open_v2()... yes
creating Makefile

make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_SQLITE3_H -
DHAVE_SQLITE3_PREPARE_V2 -DHAVE_SQLITE3_OPEN_V2  -D_XOPEN_SOURCE -
D_DARWIN_C_SOURCE   -fno-common -arch i386 -g -Os -pipe -fno-common -
DENABLE_DTRACE  -fno-common  -pipe -fno-common  -Wall   -c
do_sqlite3_ext.c
do_sqlite3_ext.c: In function 'flags_from_uri':
do_sqlite3_ext.c:367: error: 'SQLITE_OPEN_CREATE' undeclared (first
use in this function)
do_sqlite3_ext.c:367: error: (Each undeclared identifier is reported
only once
do_sqlite3_ext.c:367: error: for each function it appears in.)
do_sqlite3_ext.c:369: error: 'SQLITE_OPEN_READWRITE' undeclared (first
use in this function)
do_sqlite3_ext.c: In function 'cConnection_initialize':
do_sqlite3_ext.c:387: warning: implicit declaration of function
'sqlite3_open_v2'
make: *** [do_sqlite3_ext.o] Error 1

This is on Snow Leopard.   I am using Sqlite 3.6.12 that ships with
Snowy.   Also have sqlite3-ruby installed:

$ gem list | grep sqlite
sqlite3-ruby (1.2.5, 1.2.4)

Any pointers toward a fix would be appreciated.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to