PHP 5.4.4 unrecognized --enable-dbase
-
17-06-2021 - |
Domanda
I'm trying to compile php 5.4.4 on a CentOS 6.1 x64 server with --enable-dbase option but instead I receive this error: configure: WARNING: unrecognized options: --enable-dbase
I saw that in the ./ext/ dir there's no dbase folder so I downloaded the source from http://pecl.php.net/package/dbase. Still, the same error. Does anyone encountered this problem before?
Soluzione
The dbase
extension was removed from the PHP distribution in 5.3.
You need to install it directly from PECL, after compiling PHP.
Altri suggerimenti
test if you use Linux distro Ubuntu or Debian
sudo apt-get install php-pear php5-dev
sudo pecl install dbase
(optional if you php vertions > 5.5 and show error run -> sudo pecl install -Z dbase )
create file
sudo nano /etc/php5/apache2/conf.d/dbase.ini
and add this line in dbase.ini extension=dbase.so
(add lib extension dbase.so in php.ini)
sudo nano /etc/php5/apache2/php.ini
add line extension=dbase.so
sudo service apache2 restar
and test your functions in php. to me it worked, I hope you find it useful.
I think you now have to install it via pecl or pear instead of having it done when compiling php source, maybe the manual hasn't been updated yet