Config php5.3 cvs

Je n'inclue pas la compil de ming car elle plante. Il faudra aller recuperer les sources et
se la taper a la mano (voir plus bas)

le fichier de conf utilise pour la compil

# ./configure $(cat ../confphp5 | tr '\n' ' ')
.....

creating libtool
appending configuration tag "CXX" to libtool

Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

Notice: Following unknown configure options were used:

--enable-force-cgi-redirect
--enable-fastcgi
--enable-discard-path
--with-dom=/usr
--with-ttf=shared,/usr

Check './configure --help' for available options

# make
......

/bin/sh /usr/local/php5.3-200808051830/libtool --silent --preserve-dup-deps --mode=install cp ext/pgsql/pgsql.la /usr/local/php5.3-200808051830/modules
/bin/sh /usr/local/php5.3-200808051830/libtool --silent --preserve-dup-deps --mode=install cp ext/pspell/pspell.la /usr/local/php5.3-200808051830/modules
/bin/sh /usr/local/php5.3-200808051830/libtool --silent --preserve-dup-deps --mode=install cp ext/snmp/snmp.la /usr/local/php5.3-200808051830/modules
/bin/sh /usr/local/php5.3-200808051830/libtool --silent --preserve-dup-deps --mode=install cp ext/sqlite/sqlite.la /usr/local/php5.3-200808051830/modules
/bin/sh /usr/local/php5.3-200808051830/libtool --silent --preserve-dup-deps --mode=install cp ext/tidy/tidy.la /usr/local/php5.3-200808051830/modules
/bin/sh /usr/local/php5.3-200808051830/libtool --silent --preserve-dup-deps --mode=install cp ext/xmlrpc/xmlrpc.la /usr/local/php5.3-200808051830/modules
/bin/sh /usr/local/php5.3-200808051830/libtool --silent --preserve-dup-deps --mode=install cp ext/xsl/xsl.la /usr/local/php5.3-200808051830/modules
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.
pharcommand.inc
invertedregexiterator.inc
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
phar.inc

Build complete.
Don't forget to run 'make test'.

sarge:/usr/local/php5.3-200808051830#

# make install
....
sarge:/usr/local/php5.3-200808051830# make install
Installing PHP SAPI module:       cgi
Installing PHP CGI binary: /usr/local/bin/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20071006/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
--10:54:54--  http://pear.php.net/install-pear-nozlib.phar
           => `pear/install-pear-nozlib.phar'
Résolution de pear.php.net... 216.92.131.66
Connexion vers pear.php.net|216.92.131.66|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 3 642 880 (3.5M) [text/plain]

100%[==============================================================================================================>] 3 642 880    229.30K/s    ETA 00:00

10:55:10 (226.81 KB/s) - « pear/install-pear-nozlib.phar » sauvegardé [3642880/3642880]

[PEAR] Console_Getopt - already installed: 1.2.3
[PEAR] Archive_Tar    - already installed: 1.3.2
[PEAR] Structures_Graph- already installed: 1.0.2
[PEAR] PEAR           - already installed: 1.7.2
Warning! a PEAR user config file already exists from a previous PEAR installation at '/root/.pearrc'. You may probably want to remove it.
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/usr/local/php5.3-200808051830/build/shtool install -c ext/phar/phar.phar /usr/local/bin
Installing PDO headers:          /usr/local/include/php/ext/pdo/
sarge:/usr/local/php5.3-200808051830#

Petite verif des extensions installees:

sarge:/usr/local/php5.3-200808051830# ll /usr/local/lib/php/extensions/no-debug-non-zts-20071006/
total 12292
drwxr-sr-x 2 root staff    4096 2008-08-06 10:54 .
drwxr-sr-x 4 root staff    4096 2008-06-06 16:32 ..
-rwxr-xr-x 1 root staff  218026 2008-08-06 10:53 curl.a
-rwxr-xr-x 1 root staff  158416 2008-08-06 10:53 curl.so
-rwxr-xr-x 1 root staff 1176984 2008-08-06 10:53 gd.a
-rwxr-xr-x 1 root staff  829774 2008-08-06 10:53 gd.so
-rwxr-xr-x 1 root staff  121676 2008-08-06 10:53 gmp.a
-rwxr-xr-x 1 root staff  106777 2008-08-06 10:53 gmp.so
-rwxr-xr-x 1 root staff  243456 2008-08-06 10:53 imap.a
-rwxr-xr-x 1 root staff  203019 2008-08-06 10:53 imap.so
-rwxr-xr-x 1 root staff  341558 2008-08-06 10:54 interbase.a
-rwxr-xr-x 1 root staff  245005 2008-08-06 10:54 interbase.so
-rwxr-xr-x 1 root staff  127174 2008-08-06 10:54 ldap.a
-rwxr-xr-x 1 root staff  112798 2008-08-06 10:54 ldap.so
-rwxr-xr-x 1 root staff  114538 2008-08-06 10:54 mcrypt.a
-rwxr-xr-x 1 root staff   97992 2008-08-06 10:54 mcrypt.so
-rwxr-xr-x 1 root staff   26028 2008-08-06 10:54 mhash.a
-rwxr-xr-x 1 root staff   23589 2008-08-06 10:54 mhash.so
-rwxr-xr-x 1 root staff  153122 2008-08-06 10:54 mssql.a
-rwxr-xr-x 1 root staff  129789 2008-08-06 10:54 mssql.so
-rwxr-xr-x 1 root staff  141648 2008-08-06 10:54 mysql.a
-rwxr-xr-x 1 root staff  592988 2008-08-06 10:54 mysqli.a
-rwxr-xr-x 1 root staff  379774 2008-08-06 10:54 mysqli.so
-rwxr-xr-x 1 root staff  122465 2008-08-06 10:54 mysql.so
-rwxr-xr-x 1 root staff  532538 2008-08-06 10:54 oci8.a
-rwxr-xr-x 1 root staff  397143 2008-08-06 10:54 oci8.so
-rwxr-xr-x 1 root staff  195052 2008-08-06 10:54 odbc.a
-rwxr-xr-x 1 root staff  167938 2008-08-06 10:54 odbc.so
-rwxr-xr-x 1 root staff  369466 2008-08-06 10:54 pdo.a
-rwxr-xr-x 1 root staff  122168 2008-08-06 10:54 pdo_dblib.a
-rwxr-xr-x 1 root staff   79776 2008-08-06 10:54 pdo_dblib.so
-rwxr-xr-x 1 root staff  144626 2008-08-06 10:54 pdo_firebird.a
-rwxr-xr-x 1 root staff  102344 2008-08-06 10:54 pdo_firebird.so
-rwxr-xr-x 1 root staff  184372 2008-08-06 10:54 pdo_mysql.a
-rwxr-xr-x 1 root staff  128064 2008-08-06 10:54 pdo_mysql.so
-rwxr-xr-x 1 root staff  148888 2008-08-06 10:54 pdo_odbc.a
-rwxr-xr-x 1 root staff  103176 2008-08-06 10:54 pdo_odbc.so
-rwxr-xr-x 1 root staff  168306 2008-08-06 10:54 pdo_pgsql.a
-rwxr-xr-x 1 root staff  117478 2008-08-06 10:54 pdo_pgsql.so
-rwxr-xr-x 1 root staff  261696 2008-08-06 10:54 pdo.so
-rwxr-xr-x 1 root staff  149728 2008-08-06 10:54 pdo_sqlite.a
-rwxr-xr-x 1 root staff  104533 2008-08-06 10:54 pdo_sqlite.so
-rwxr-xr-x 1 root staff  292038 2008-08-06 10:54 pgsql.a
-rwxr-xr-x 1 root staff  245835 2008-08-06 10:54 pgsql.so
-rwxr-xr-x 1 root staff   61702 2008-08-06 10:54 pspell.a
-rwxr-xr-x 1 root staff   54445 2008-08-06 10:54 pspell.so
-rwxr-xr-x 1 root staff   89024 2008-08-06 10:54 snmp.a
-rwxr-xr-x 1 root staff   78738 2008-08-06 10:54 snmp.so
-rwxr-xr-x 1 root staff  268252 2008-08-06 10:54 sqlite.a
-rwxr-xr-x 1 root staff  201314 2008-08-06 10:54 sqlite.so
-rwxr-xr-x 1 root staff  126840 2008-08-06 10:54 tidy.a
-rwxr-xr-x 1 root staff  108947 2008-08-06 10:54 tidy.so
-rwxr-xr-x 1 root staff  410530 2008-08-06 10:54 xmlrpc.a
-rwxr-xr-x 1 root staff  271492 2008-08-06 10:54 xmlrpc.so
-rwxr-xr-x 1 root staff  136444 2008-08-06 10:54 xsl.a
-rwxr-xr-x 1 root staff  102806 2008-08-06 10:54 xsl.so
sarge:/usr/local/php5.3-200808051830#



=========================================================


install de ming manuelle

http://www.libming.org/moin.cgi/Releases


sarge:/usr/local# wget http://dfn.dl.sourceforge.net/sourceforge/ming/ming-0.4.0.rc1.tar.gz
sarge:/usr/local/ming-0.4.0.rc1# ./configure
....
Config summary:
  C++ enabled
  Perl extension disabled
  PHP extension disabled
  Python extension disabled
  Tcl extension disabled
  ZLIB enabled (-lz)
  Freetype library enabled (/usr/bin/freetype-config)
  GIF library disabled
  PNG library enabled (-lpng)

sarge:/usr/local/ming-0.4.0.rc1# make && make install

sarge:/usr/local/ming-0.4.0.rc1# cd php_ext

sarge:/usr/local/ming-0.4.0.rc1/php_ext# make && make install

.....
rm -fr  .libs/ming.la .libs/ming.lai .libs/ming.so
gcc -shared  .libs/ming.o  -L/usr/local/ming-0.4.0.rc1/src/lib -lming  -Wl,-rpath -Wl,/usr/local/ming-0.4.0.rc1/src/lib -Wl,-soname -Wl,ming.so -o .libs/ming.so
creating ming.la
(cd .libs && rm -f ming.la && ln -s ../ming.la ming.la)
/bin/sh /usr/local/ming-0.4.0.rc1/php_ext/tmp/libtool --mode=install cp ./ming.la /usr/local/ming-0.4.0.rc1/php_ext/tmp/modules
cp ./.libs/ming.so /usr/local/ming-0.4.0.rc1/php_ext/tmp/modules/ming.so
cp ./.libs/ming.lai /usr/local/ming-0.4.0.rc1/php_ext/tmp/modules/ming.la
PATH="$PATH:/sbin" ldconfig -n /usr/local/ming-0.4.0.rc1/php_ext/tmp/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/ming-0.4.0.rc1/php_ext/tmp/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

make[1]: quittant le répertoire « /usr/local/ming-0.4.0.rc1/php_ext/tmp »
/usr/bin/install -c -d `dirname /usr/local`/`php-config --extension-dir`
/usr/bin/install -c -m 755 tmp/modules/ming.so `dirname /usr/local`/`php-config --extension-dir`


sarge:/usr/local/ming-0.4.0.rc1/php_ext/tmp/modules# cp ming.so /usr/local/lib/php/extensions/no-debug-non-zts-20071006/

Les librairies sont installées dans /usr/local/lib. Donc soit on rajoute ce path dans ld.so.conf.d soit on degage
les versions precedentes dans /usr/lib et on les remplace par les nouvelles.

J'opte pour la seconde solution:

# rm /usr/lib/libming*
# cp /usr/local/lib/libming.so.1.4.0 /usr/lib
# cd /usr/lib
# ln -s libming.so.1.4.0 libming.so.1
# ln -s libming.so.1.4.0 libming.so
# ldconfig -v

Maintenant affichage d'un phpinfo :

Reste à vérifier la compatibilité des portails que j'utilise..


Tests portails (en cours de redaction...):

dotclear Version 1.2.x :  pas de problemes


dotclear Version 2.0 :  Warnings (masques si l'on passe display_errors à off dans le php.ini)

Warning: Parameter 1 to rsExtUser::options() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/clearbricks/dblayer/dblayer.php on line 588
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /web/clients/client1/www/dotclear2/inc/core/class.dc.auth.php on line 128
Warning: Parameter 1 to pagesWidgets::initWidgets() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to blogrollWidgets::initWidgets() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to metaWidgets::initWidgets() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to pagesWidgets::initDefaultWidgets() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to blogrollWidgets::initDefaultWidgets() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to metaWidgets::initDefaultWidgets() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to dcAntispam::dashboardIcon() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to pages_dashboard() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299
Warning: Parameter 1 to blogroll_dashboard() expected to be a reference, value given in /web/clients/client1/www/dotclear2/inc/core/class.dc.core.php on line 299

    Bilan : Problèmes d'affichage empéchant le fonctionnement correct du portail


punbb-1.2.19 :  pas de problemes


moregroupware-0.7.4 :  pas de problemes


joomla-1.5.5 fr :  Warnings identiques à Dotclear2 à propos des references

    Bilan: fonctionnement impossible


claroline-1.8.11 :  pas de problèmes


guppy-4.6.8 :  pas de problemes


Mediawiki-1.12.0 :  plante dès l'install :  Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /web/clients/client1/www/wiki/includes/Namespace.php on line 49

En allant voir le code on nous indique que a peut etre lie au bug  12294 de php. Un tour sur bugs.php.net et on apprend qu'il faut avoir installé flex et bison. Manque de bol c'est deja fait a moins qu'il ne s'aggise d'un souci de version:

sarge:/web/clients/client1/www/wiki# dpkg -l bison
||/ Nom                          Version                      Description
+++-============================-============================-========================================================================
ii  bison                        2.3.dfsg-4                   A parser generator that is compatible with YACC

sarge:/web/clients/client1/www/wiki# dpkg -l flex*
||/ Nom                          Version                      Description
+++-============================-============================-========================================================================
rc  flex                         2.5.31-31                    A fast lexical analyzer generator.
ii  flex-old                     2.5.4a-7                     The old version of the fast lexical analyzer generator.

ON VERRA PLUS TARD EN INSTALLANT LA VERSION 2.5.31 DE FLEX...


pivot-1.40.6 : pas de problemes



la suite dans quelques heures....