Login  Register

Re: SQLite3 - External module not found

Posted by philippeback on Feb 28, 2015; 10:39pm
URL: https://forum.world.st/SQLite3-External-module-not-found-tp4808549p4808594.html

I have it working on CentOS.

So it is possible to have it working on Linux.

Is your lib 32 bits?

Also beware of the finalize in the sqlite library in Pharo as it has a bug.

I've had to remove the finalize method and handle connections properly on my own with ensure:

NBSqlite also exists.

Phil

Le 28 févr. 2015 23:12, "Julien Delplanque" <[hidden email]> a écrit :
First, thanks to take time to answer me.

On 28/02/15 22:50, Bernardo Ezequiel Contreras wrote:
> the symbolic link works in my pc. did you restart the image after
> creating the link? or maybe the link is in the wrong place?

Ok, I'll be a little more precise:

The libsqlite3.so file is located in /usr/lib/
My pharo vm is located in ~/lib-perso/pharo3.0/

What I did is:
ln -s /usr/lib/sqlite3.so ~/lib-perso/pharo3.0/bin/sqlite3.so

Then I restarted the VM as you said but the error still appear when I
tried the code I c/c in the first mail.

Then I realized that  /usr/lib/sqlite3.so is a symbolic link that point
on /usr/lib/libsqlite3.so.0.8.6 so to be sure it wasn't just that, I
tried the following commands:

rm ~/lib-perso/pharo3.0/bin/sqlite3.so
ln -s /usr/lib/libsqlite3.so.0.8.6 ~/lib-perso/pharo3.0/bin/sqlite3.so

The error still appear, I'm really confused.