Re: SQLite3 - External module not found
Posted by Julien Delplanque on Mar 01, 2015; 7:56am
URL: https://forum.world.st/SQLite3-External-module-not-found-tp4808549p4808614.html
Ok, first of all I made a mistake in my description, the file in the
pharo vm's "bin" directory was well named libsqlite3.so.
The problem seems to be that /usr/lib/libsqlite3.so.0.8.6 is a 64bits
version.
Using readelf, I get (in french sorry):
$ readelf -h /usr/lib/libsqlite3.so.0.8.6
En-tête ELF:
Magique: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Classe: ELF64
Données: complément à 2, système à octets de
poids faible d'abord (little endian)
Version: 1 (current)
OS/ABI: UNIX - System V
Version ABI: 0
Type: DYN (fichier objet partagé)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Adresse du point d'entrée: 0xba00
Début des en-têtes de programme : 64 (octets dans le fichier)
Début des en-têtes de section : 816368 (octets dans le fichier)
Fanions: 0x0
Taille de cet en-tête: 64 (octets)
Taille de l'en-tête du programme: 56 (octets)
Nombre d'en-tête du programme: 7
Taille des en-têtes de section: 64 (octets)
Nombre d'en-têtes de section: 27
Table d'indexes des chaînes d'en-tête de section: 26
I couldn't find a 32 bit version of the package in Arch repositories
(maybe I don't search well?).
So I searched on google and found a 32bit version. I just c/c it in the
pharo vm's bin directory and.... it worked!
The the problem was the version of the lib (64 vs 32bit).
Once again, thanks a lot :)
Julien