Search code examples
phplinuxcentosbzip2

installing bzip2 for php


I have a server with CentOs and PHP 5.3.16 and I want to enable bzip2 to use with php.. I downloaded and installed bzip2 from its original site in /usr/local/bin and edited the configuration.php5 file and inclueded --with-bz2=/usr/local/bin in it. but after I make install it says that :

unable to load dynamic library /usr/local/bin/php/extensions/no-debug-non-zts-20090626/bz2.so

what I am doing wrong?


Solution

  • Oops it seems that I shouldn't have set extensions=bz2.so in php.ini file.

    Removing it solved the problem.