Précédent   Forum des professionnels en informatique > Systèmes > Linux > Applications
Applications Questions sur l'utilisation d'applications, du shell, et des interfaces graphiques (KDE, Gnome, XFCE... )
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
Vieux 25/11/2009, 17h03   #1
Invité de passage
 
Inscription : octobre 2009
Messages : 16
Détails du profil
Informations forums :
Inscription : octobre 2009
Messages : 16
Points : 3
Points : 3
Par défaut Comment lancer pdo.so

Os: BusyBox v1.0

Bonjour,

j'ai un souci avec l'extension pdo.so, je n'arrive pas à la lancer:

j'en ai besoin pour eGroupware 1.6

phpinfo()

Configure Command
Citation:
'--disable-pdo'
j'ai fait quelques modifications dans le php.ini:

Citation:
extension_dir = "/opt/lib/php/extensions/"
extension=pdo.so
extention=pdo_mysql.so
mais je n'arrive pas à faire passer la config de PHP en pdo activé

message d'erreur:
Citation:
Warning: dl() [function.dl]: Unable to load dynamic library '/opt/lib/php/extensions/pdo.so' - /opt/lib/php/extensions/pdo.so: undefined symbol: compiler_globals_id in /volume1/web/egroupware/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php on line 1409

An error happend
PHP extension 'pdo' not loaded AND can NOT be loaded via dl('pdo.so')!


Click here to resume your eGroupWare Session.
Canna59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/11/2009, 10h35   #2
Invité de passage
 
Inscription : octobre 2009
Messages : 16
Détails du profil
Informations forums :
Inscription : octobre 2009
Messages : 16
Points : 3
Points : 3
J'ai trouvé sur internet ceci:

./configure --with-zlib --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared


je pense que la solution se trouve dans cette commande mais je ne sais pas comment la faire "fonctionner" :o
Canna59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/11/2009, 10h42   #3
Membre expérimenté
 
Avatar de cboudy
 
Ingénieur informatique industrielle
Inscription : avril 2006
Messages : 381
Détails du profil
Informations personnelles :
Localisation : France

Informations professionnelles :
Activité : Ingénieur informatique industrielle

Informations forums :
Inscription : avril 2006
Messages : 381
Points : 525
Points : 525
visiblement ton php a été compilé sans le support de pdo
comment as tu installé php ?
cboudy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/11/2009, 10h54   #4
Invité de passage
 
Inscription : octobre 2009
Messages : 16
Détails du profil
Informations forums :
Inscription : octobre 2009
Messages : 16
Points : 3
Points : 3
Comme je suis sur un NAS Synology PHP est déjà compilé est installé dessus donc je n'ai aucune information

phpinfo() configure command

Citation:
Configure Command './configure.syno' '--host=powerpc-unknown-linux' '--target=powerpc-unknown-linux' '--build=i686-pc-linux' '--with-apxs2=/usr/local/apache/bin/apxs' '--prefix=/usr/syno/php' '--with-config-file-path=/usr/syno/etc' '--with-pgsql=/usr/syno/pgsql' '--with-mysql=/usr/syno/mysql' '--with-mysqli=/usr/syno/mysql/bin/mysql_config' '--with-iconv=/usr/syno/libiconv' '--enable-mbstring' '--with-gd' '--enable-gd-native-ttf' '--with-zlib-dir=/usr/local/powerpc-linux-gnuspe' '--with-png-dir=/usr/local/powerpc-linux-gnuspe' '--with-jpeg-dir=/usr/local/powerpc-linux-gnuspe' '--enable-exif' '--with-imap=../imap-2007e' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--with-libexpat-dir=/usr/syno' '--enable-dom' '--with-libxml-dir=/source/libxml2-2.6.32' '--enable-simplexml' '--enable-libxml' '--enable-xmlreader' '--enable-xmlwriter' '--disable-ipv6' '--disable-pdo' '--without-pdo-sqlite' '--without-sqlite' '--with-curl=/usr/syno' '--disable-cgi' '--enable-bcmath' '--with-gettext'
Canna59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/11/2009, 12h06   #5
Invité de passage
 
Inscription : octobre 2009
Messages : 16
Détails du profil
Informations forums :
Inscription : octobre 2009
Messages : 16
Points : 3
Points : 3
Est ce que je peux reconfigurer PHP? pour qu'il accepte PDO?
Canna59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/11/2009, 17h00   #6
Membre expérimenté
 
Avatar de cboudy
 
Ingénieur informatique industrielle
Inscription : avril 2006
Messages : 381
Détails du profil
Informations personnelles :
Localisation : France

Informations professionnelles :
Activité : Ingénieur informatique industrielle

Informations forums :
Inscription : avril 2006
Messages : 381
Points : 525
Points : 525
normalement il faudrait le recompiler : la compilation ayant été configurée sans le support de pdo (--disable-pdo)
pour ce faire il faudrait que tu télécharges les sources, puis ./configure, make (compilation) et make install (installation)
avant de te lancer la dedans, as-tu un support ou une FAQ de Synology ? et les as tu contacté ?
cboudy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/11/2009, 15h12   #7
Invité de passage
 
Inscription : octobre 2009
Messages : 16
Détails du profil
Informations forums :
Inscription : octobre 2009
Messages : 16
Points : 3
Points : 3
je vais essayer de le recompiler, :o est-ce que quelqu'un a une idée de ce qu'il faut mettre ou retiré pour egroupware :o
Canna59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/11/2009, 16h03   #8
Invité de passage
 
Inscription : octobre 2009
Messages : 16
Détails du profil
Informations forums :
Inscription : octobre 2009
Messages : 16
Points : 3
Points : 3
j'ai tenté ça:

Citation:
./configure --with-zlib --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared
erreur :
Citation:
error: xml2-config not found. Please check your libxml2 installation.
Citation:
xml2-config --prefix
/opt
Citation:
which xml2-config
/opt/bin/xml2-config
est ce que je dois changer le chemin?

Citation:
xml2-config --exec-prefix=/opt/bin
il ne se passe rien
Canna59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/11/2009, 16h19   #9
Membre expérimenté
 
Avatar de cboudy
 
Ingénieur informatique industrielle
Inscription : avril 2006
Messages : 381
Détails du profil
Informations personnelles :
Localisation : France

Informations professionnelles :
Activité : Ingénieur informatique industrielle

Informations forums :
Inscription : avril 2006
Messages : 381
Points : 525
Points : 525
c'est plutot à ./configure qu'il faut indiquer le chemin de xml2-config, il doit y avoir une option
que donne ?
cboudy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/11/2009, 16h41   #10
Invité de passage
 
Inscription : octobre 2009
Messages : 16
Détails du profil
Informations forums :
Inscription : octobre 2009
Messages : 16
Points : 3
Points : 3
il donne beaucoup de chose j'ai "trouvé ça" je vais testé

Citation:
Extensions:

--with-EXTENSION=[shared[,PATH]]

NOTE: Not all extensions can be build as 'shared'.

Example: --with-foobar=shared,/usr/local/foobar/

o Builds the foobar extension as shared extension.
o foobar package install prefix is /usr/local/foobar/


--disable-all Disable all extensions which are enabled by default

--with-regex=TYPE regex library type: system, php. [TYPE=php]
WARNING: Do NOT use unless you know what you are doing!
--disable-libxml Disable LIBXML support
--with-libxml-dir[=DIR] LIBXML: libxml2 install prefix
Canna59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +1. Il est actuellement 04h51.


 
 
 
 
Partenaires

Hébergement Web