Bonjour à tous,
J'ai un souci de compilation afin de faire mon exécutable php-cgi.
C'est pour mon petit serveur DIGI9210:
Je suis la procédure proposé par DIGI ici:http://ftp1.digi.com/support/documen...PHP-SQLite.pdf
J'ai télécharger la même version de php que dans le tuto DIGI (5.2.13)
Malheureusement lorsque je cherche a faire:
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/usr --without-iconv --disable-xml --without-pear --disable-libxml --disable-dom --disable-simplexml --disable-xmlreader --disable-xmlwriter --with-pdo-sqlite=/usr/local/DigiEL-5.2/usr
A part que je suis en DigiEL-5.7 et non 5.2 j'ai donc modifié en
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/usr --without-iconv --disable-xml --without-pear --disable-libxml --disable-dom --disable-simplexml --disable-xmlreader --disable-xmlwriter --with-pdo-sqlite=/usr/local/DigiEL-5.7/usr
La compilation se lance mais j'ai une erreur:
1 2 3 4 5 6 7
| .......
checking for ODBC v3 support for PDO... no
checking for PostgreSQL support for PDO... no
checking for sqlite 3 support for PDO... yes
checking for PDO includes... checking for PDO includes... /home/simon/workspace/PHPSQLite9210/php-5.2.13/ext
checking for sqlite3 files in default path... not found
configure: error: Please reinstall the sqlite3 distribution |
Effectivement lorsque je lançais sqlite3 j'avais une erreur, j'ai donc installer le package avec sudo apt-get install sqlite3.
Une fois installé j'ai bien:
1 2 3 4 5
| ...:~/workspace/PHPSQLite9210/php-5.2.13$ sqlite3
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> |
Mais j'ai le même message d'erreur lors de la compilation.
En recherchant ce message d'erreur j'ai trouvé qu'il fallait faire:
1 2 3 4
| ......:~/workspace/PHPSQLite9210/php-5.2.13$ sudo yum install sqlite-devel
Configuration du processus d'installation
Aucun paquet sqlite-devel disponible.
Rien à faire |
Mais voila aucun paquet de disponible.
J'ai tenté d'enlever l'option de compilation relatif à sqlite ce qui donne :
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/usr --without-iconv --disable-xml --without-pear --disable-libxml --disable-dom --disable-simplexml --disable-xmlreader --disable-xmlwriter
Dans ce cas la compilation va jusqu'au bout mais lorsque je fait le "make" j'ai plein d'erreur relatif à sqlite.
Une idée ??
Partager