External module not found

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

External module not found

horrido
I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt encryption package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work anymore. The ffiCall:module: message always gives me "External module not found".

So my question is, what alternative package can I use to replace the it for Pharo 6?

Should I go back to Pharo 5?
Reply | Threaded
Open this post in threaded view
|

Re: External module not found

vonbecmann
i've seen that error when i forgot to put a link to sqlite3 (libsqlite3.so) near the VM. are you sure that the VM have access to the external library?



On Sat, Nov 17, 2018 at 7:39 PM Richard Kenneth Eng <[hidden email]> wrote:
I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt encryption package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work anymore. The ffiCall:module: message always gives me "External module not found".

So my question is, what alternative package can I use to replace the it for Pharo 6?

Should I go back to Pharo 5?


--
Bernardo E.C.

Sent from a cheap desktop computer in South America.
Reply | Threaded
Open this post in threaded view
|

Re: External module not found

horrido
That's what I'm trying to determine. This used to work before with Pharo 5.

With the latest Pharo setup, it's not clear where I'm supposed to place the
libshacrypt.so file. It has to be located where the Pharo VM can find it, I
presume.

This may be a 32 vs 64 bit issue. I am investigating...



vonbecmann wrote
> i've seen that error when i forgot to put a link to sqlite3
> (libsqlite3.so)
> near the VM. are you sure that the VM have access to the external library?
>
>
>
> On Sat, Nov 17, 2018 at 7:39 PM Richard Kenneth Eng <

> horrido.hobbies@

>> wrote:
>
>> I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt
>> &lt;http://www.samadhiweb.com/blog/2017.02.18.shacrypt.html&gt;
>> encryption
>> package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work
>> anymore. The ffiCall:module: message always gives me "External module
>> not found".
>>
>> So my question is, what alternative package can I use to replace the it
>> for Pharo 6?
>>
>> Should I go back to Pharo 5?
>>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: External module not found

Stephan Eggermont-3
horrido <[hidden email]> wrote:
> That's what I'm trying to determine. This used to work before with Pharo 5.
>
> With the latest Pharo setup, it's not clear where I'm supposed to place the
> libshacrypt.so file. It has to be located where the Pharo VM can find it, I
> presume.
>
> This may be a 32 vs 64 bit issue. I am investigating...

Your old 32 bit .so will definitely not work with 64 bit. And does it work
with Pharo 6.1?

Stephan





Reply | Threaded
Open this post in threaded view
|

Re: External module not found

horrido
All is good now. I replaced my 64-bit Debian with 32-bit Debian. Then, I
installed 32-bit Pharo.

It's weird that I must run Pharo (which is installed in /home/richard) as
root, though. Must be a Debain thing 'cuz it wasn't necessary in Ubuntu.



Stephan Eggermont-3 wrote
> horrido &lt;

> horrido.hobbies@

> &gt; wrote:
>> That's what I'm trying to determine. This used to work before with Pharo
>> 5.
>>
>> With the latest Pharo setup, it's not clear where I'm supposed to place
>> the
>> libshacrypt.so file. It has to be located where the Pharo VM can find it,
>> I
>> presume.
>>
>> This may be a 32 vs 64 bit issue. I am investigating...
>
> Your old 32 bit .so will definitely not work with 64 bit. And does it work
> with Pharo 6.1?
>
> Stephan





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: External module not found

Pierce Ng-3
In reply to this post by horrido
On Sat, Nov 17, 2018 at 05:38:28PM -0500, Richard Kenneth Eng wrote:
> I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt
> <http://www.samadhiweb.com/blog/2017.02.18.shacrypt.html> encryption
> package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work
> anymore. The ffiCall:module: message always gives me "External module
> not found".

I use the library myself on 32-bit Pharo 6, so it works, for me at least.

For custom so/dll files such as this library or my custom-built SQLite
library, my practice is to place them into the VM directory where
the Pharo executable and all its bundled so/dll files are. Then I run
following script to start Pharo:

  #!/bin/sh
  PHAROVMPATH=$(dirname `readlink -f "$0"`)
  LD_LIBRARY_PATH="$PHAROVMPATH" exec "$PHAROVMPATH/pharo" $@ &

Pierce