Problem with extension on OS X

A

Andreas Schwarz

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
 
T

ts

try it with

A> 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
 
A

Ara.T.Howard

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

??

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

??

-a
--
===============================================================================
| 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
===============================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top