[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Moduli per php4



Salve a tutti,
sono iscritto da poco a questa ML e sono un utente Debian da circa 6 mesi, 
prima su un sistema gia' installato (grazie ndr) poi su una potato installata 
da me. 
Ora sono passato via apt a woody+unstable.
Tra le cose unstable ho messo il php4 (4.0.5).
Prima avevo il 4.0.3.
Finalmente il punto...
Per la tesi uso Interbase/firebird (in questo caso firebird, convertito in 
deb da un rpm), ed ho bisogno le estensioni per ibase per php.
Visto che non c'e' il modulo php4-interbase.deb, leggendo la docs avevo 
scoperto (gia' con la 4.0.3pl1) che e' possibile compilare le estensioni 
separatamente e metterele poi nella giusta subdir.
Il procedimento (che aveva funzionato con la 4.0.3pl1) e' il seguente:
(presio da php4-dev/README.SELF-CONTAINED-EXTENSIONS.gz)

CONVERTING AN EXISTING EXTENSION

  Just to show you how easy it is to create a self-contained
  extension, we will convert an embedded extension into a
  self-contained one. Install PHP and execute the following
  commands.
  
     $ mkdir /tmp/newext
     $ cd /tmp/newext

  You now have an empty directory. We will copy the files from
  the mysql extension:

     $ cp -rp php-4.0.X/ext/mysql/* .

  It is time to finish the module. Run:

     $ phpize

  You can now ship the contents of the directory - the extension
  can live completely on its own.

  The user instructions boil down to

     $ ./configure \
            [--with-php-config=/path/to/php-config] \
            [--with-mysql=MYSQL-DIR]
     $ make install

  The MySQL module will either use the embedded MySQL client 
  library or the MySQL installation in MYSQL-DIR.

ovviamente al posto di mysql ho usato interbase. Il risultato e' che quando 
faccio ripartire apache mi dice:

root@frankie:/tmp/ext# /etc/init.d/apache restart

Reloading apache modules.
/usr/sbin/apachectl stop: httpd stopped
PHP Warning:  Invalid library (maybe not a PHP library) 'interbase.so'  in 
Unknown on line 0
/usr/sbin/apachectl start: httpd started

nella directory dove ci sono le estensioni (mysql.so,domxml.so...) c'e' anche 
la mia interbase.so, che a quanto pare non viene vista come tale.
Il fatto e' che con il php4.0.3pl1 funzionava, perche' adesso no?

Potrei ricompilare il php, ma  visto che questa cosa ha funzionato una volta, 
non vedo perche' non debba funzionare di nuovo!!!
-- 
frank@office
P|||@450MHz-196MB-DebWoody/Sid



Reply to: