Problem with extension on OS X

Hello,

I have compiled SQLite.c from ruby-dbi on OS X, but when I try to load it in ruby with 'require "sqlite"' I get the following eror message:

irb(main):001:0> require 'sqlite'
LoadError: Failed to lookup Init function /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin/sqlite.bundle
         from /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin/sqlite.bundle
         from (irb):1

I tried both 1.8.1 and stable-snapshot without success. The extension works in 1.8.1 on Linux.

You can find a snapshot of the extension directory here:
http://andreas-s.net/tmp/dbd-sqlite.tar.gz

Any hints?

Andreas

try it with

irb(main):001:0> require 'sqlite'

                    require 'SQLite' # case sensitive

svg% tar ztvf dbd-sqlite.tar.gz | grep SQLite.bundle
-rw-r--r-- andreas/andreas 37320 2004-07-13 17:36:52 ext/SQLite.bundle
svg%

Guy Decoux

??

LD_LIBRARY_PATH=/full/path/to/install/directory/of/sqlitelib

??

-a

···

On Tue, 13 Jul 2004, Andreas Schwarz wrote:

Hello,

I have compiled SQLite.c from ruby-dbi on OS X, but when I try to load it in ruby with 'require "sqlite"' I get the following eror message:

irb(main):001:0> require 'sqlite'
LoadError: Failed to lookup Init function /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin/sqlite.bundle
       from /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin/sqlite.bundle
       from (irb):1

I tried both 1.8.1 and stable-snapshot without success. The extension works in 1.8.1 on Linux.

You can find a snapshot of the extension directory here:
http://andreas-s.net/tmp/dbd-sqlite.tar.gz

Any hints?

Andreas

--

EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
A flower falls, even though we love it;
and a weed grows, even though we do not love it. --Dogen

===============================================================================

ts wrote:

"A" == Andreas Schwarz <usenet@andreas-s.net> writes:

try it with

> irb(main):001:0> require 'sqlite'

                    require 'SQLite' # case sensitive

Thanks! (case insensitive filesystems are evil)