On 25/04/15 21:04,
[hidden email]
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_LIBRARY so the OCILib dylib is present in
> it. I've also tried putting a sym link to the library in Resources
> directory. Do I need to set anything else, such as Info.plist ?
Could you make sure that you actually have an 32bit or universal version
of OCILib?
You can check with "file libraryname.dylib". If this is an 64bit-only
lib only you'll get that error even if the lib is found.
64bit Only lib:
$ file /usr/local/lib/libjpeg.dylib
/usr/local/lib/libjpeg.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
"Universal" lib:
$ file /usr/local/lib/libnanomsg.dylib
/usr/local/lib/libnanomsg.dylib: Mach-O universal binary with 2
architectures
/usr/local/lib/libnanomsg.dylib (for architecture i386): Mach-O
dynamically linked shared library i386
/usr/local/lib/libnanomsg.dylib (for architecture x86_64): Mach-O 64-bit
dynamically linked shared library x86_64
CU,
Udo