It would also be nice to see (either via syslog()/OutputDebugString()) or (if possible) in the error itself, what library (full path) was being loaded. The output will generally be of interest only when something fails.
Similar comments would apply to serial ports that won't open - what did the vm actually try to do when something failed? Most problems that I have had with getting Pharo to open something (library or port) have been relatively obvious to solve as soon as I saw how my intent was translated before it was passed on to the hardware (e.g. /usr/lib//this/that/something.so). Bill ________________________________ From: [email protected] [[email protected]] on behalf of Mariano Martinez Peck [[email protected]] Sent: Saturday, January 07, 2012 5:20 AM To: [email protected] Subject: Re: [Pharo-project] Cog+linux: external module not found BTW, Eliot, is there a way so that FFI throws something different from "Module not found" when the module is there but not 32 bits? like "Module found but it is not 32 bits" ? cheers On Sat, Jan 7, 2012 at 10:04 AM, Nick Ager <[email protected]<mailto:[email protected]>> wrote: Hi Bill, Have you tried strace to determine what library it's failing to load? Nick On 7 January 2012 03:26, Schwab,Wilhelm K <[email protected]<mailto:[email protected]>> wrote: Eliot, There is no /lib32 or /usr/lib32. As a double check, locate lib32 returns nothing. I put the library in /usr/lib, which is what I have done on two other Lucid systems. ldconfig shows it registered there. What's next? Bill ________________________________ From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Eliot Miranda [[email protected]<mailto:[email protected]>] Sent: Friday, January 06, 2012 7:29 PM To: [email protected]<mailto:[email protected]> Subject: Re: [Pharo-project] Cog+linux: external module not found On Fri, Jan 6, 2012 at 4:18 PM, Schwab,Wilhelm K <[email protected]<mailto:[email protected]>> wrote: Paul, The library is 32 bit - I build it from source because it ships with 64 bit binaries. Then try changing your LD_LIBRARY_PATH to /lib32:/usr/lib32:$LD_LIBRARY_PATH and see if that helps (if you have /lib32 & /usr/lib32 that is) Bill ________________________________________ From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Paul DeBruicker [[email protected]<mailto:[email protected]>] Sent: Friday, January 06, 2012 6:59 PM To: [email protected]<mailto:[email protected]> Subject: Re: [Pharo-project] Cog+linux: external module not found Schwab,Wilhelm K wrote > > Eliot, > > I'm getting the same error with your latest VM. Any ideas? > > Bill > > > When I had trouble with this it was a 64bit vs 32bit library mismatch on a 64bit OS. Is it a 32 bit or 64 bit OS? Is the library you're trying to reach 32bit? 64bit libs won't work with the 32bit CogVM, but are installed by default by the Ubuntu package manager on a 64bit Ubuntu. Ubuntu also moved some mandatory (from Cog's perspectvie) 32 bit libs from their ia32-libs package to the ia32-libs-multiarch recently but I don't know if that change affects Lucid. -- View this message in context: http://forum.world.st/Cog-linux-external-module-not-found-tp4271136p4271354.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com. -- best, Eliot -- Mariano http://marianopeck.wordpress.com
