[Pharo-users] Oracle FFI - External module not found on OS X

2015-04-29 Thread recursive68
I found to working solutions which fix issue, also doesn't require symlink in Plugins directory: 1) create plist file in /Library/LaunchAgents which sets library path and Oracle home or 2) create apple script that sets environment variables and run a user login

[Pharo-users] Oracle FFI - External module not found on OS X

2015-04-28 Thread recursive68
Discovered the issue, the Oracle FFI wrapper is loading correctly but then is not finding the Oracle Instant Client library correctly. Creating sym links fixes the issue with finding the Oracle Instant Client dylibs but then it still doesn't find Oracle TNS settings etc .. BTW used dtruss (dtrace t

Re: [Pharo-users] Oracle FFI - External module not found on OS X

2015-04-27 Thread Udo Schneider
On 28/04/15 00:03, recursiv...@gmail.com wrote: If I create a sym link in the Plugins directory or copy the dylib to the Plugins directory and launch Pharo via the Finder dialog window, it fails with "External module not found", so it appears to be how Pharo and/or OSX sets it library path when l

[Pharo-users] Oracle FFI - External module not found on OS X

2015-04-27 Thread recursive68
Thanks, it's giving this, so it's appears to be 32 bit (I compiled with CFLAGS=-m32): /usr/local/lib/libocilib.dylib: Mach-O dynamically linked shared library i386 I think the library is ok, it's just not being found by Pharo when I launch it as an application from the Finder dialog. If I launch

Re: [Pharo-users] Oracle FFI - External module not found on OS X

2015-04-27 Thread Udo Schneider
On 25/04/15 21:04, recursiv...@gmail.com wrote: I wrote a FFI wrapper for an Oracle library ( OCILib ) sometime ago, which worked on Pharo 1.4 and Pharo 2.0 / 3.0. I'm now trying to use it with Pharo 4.0 and its failing with "External module not found". This is on OSX and I've set DYLD_LIB_LIBRAR

[Pharo-users] Oracle FFI - External module not found on OS X

2015-04-26 Thread recursive68
Hi, Yes, it's on the same machine. I've tried copying the dylib to MacOS/Plugins directory and it doesn't fix it. Weirdly, if I start the Pharo executable from the command line, where I've set the DYLD_LIBRARY_PATH for the dylib in the shell environment, it works. So it seems to be something to d

Re: [Pharo-users] Oracle FFI - External module not found on OS X

2015-04-26 Thread Pierce Ng
On Sat, Apr 25, 2015 at 08:04:30PM +0100, recursiv...@gmail.com wrote: > also tried putting a sym link to the library in Resources directory. Do I Should go into MacOS/Plugins. You'll see a bunch of dylib files there.

Re: [Pharo-users] Oracle FFI - External module not found on OS X

2015-04-25 Thread Ben Coman
On Sun, Apr 26, 2015 at 3:04 AM, wrote: > Hi, > > I wrote a FFI wrapper for an Oracle library ( OCILib ) sometime ago, which > worked on Pharo 1.4 and Pharo 2.0 / 3.0. I'm now trying to use it with > Pharo 4.0 and its failing with "External module not found". This is on OSX > and I've set DYLD_LI

[Pharo-users] Oracle FFI - External module not found on OS X

2015-04-25 Thread recursive68
Hi, I wrote a FFI wrapper for an Oracle library ( OCILib ) sometime ago, which worked on Pharo 1.4 and Pharo 2.0 / 3.0. I'm now trying to use it with Pharo 4.0 and its failing with "External module not found". This is on OSX and I've set DYLD_LIB_LIBRARY so the OCILib dylib is present in it. I've