LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Recompiling php with gdbm option (https://www.linuxquestions.org/questions/linux-software-2/recompiling-php-with-gdbm-option-387768/)

DGath 11-29-2005 09:47 PM

Recompiling php with gdbm option
 
Trying out a php script, PHPCast (look it up on sourceforge), and having some difficulty getting it to work. Should be a pretty simple question for the more experienced out there, but how exactly would I go about recompiling PHP with the gdbm option (I'm running Breezy Badger BTW). Initially the error was that php didn't have the dba option turned on, well luckily I was able to add that via synaptic, but now it is telling me
"PHP is not compiled --with gdbm support, required to use DBM style cache."

Any thoughts?

Thanks =)

rylan76 11-30-2005 04:02 AM

Hi!

I had much the same problem when I wanted to run a script that required GD (image and image file manipulation functions) library support.

As far as I know, you will need to download the PHP source archive, and then configure, compile and install it. In the configuration step, make sure that you specify you want gdbm support, by specifying

--with-gdbm

on the PHP configure line.

For example, here is my PHP5 configure line to get gdbm support (among other things) on our local web development server:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-apache2 --with-config-file-path=/usr/local/lib --with-gd --with-zlib --with-zlib-dir=/home/monitor/cvs-1.11.5/zlib/ --with-jpeg-dir=/home/stefan/jpeglib --with-png-dir=/home/stefan/pnglib --with-tiff-dir=/home/stefan/tiff --with-freetype-dir=/home/stefan/freetype-2.1.10 --with-libxml-dir=/home/stefan/libxml2-2.6.19 --with-java=/usr/java/j2sdk1.4.2_05/ --with-pear=/usr/local/lib/php --with-dom --enable-sockets --enable-ftp --enable-gd-native-ttf --enable-dbx --enable-shmop --enable-filepro --enable-bcmath --enable-calendar --enable-dio --enable-exif --with-fam --enable-mbstring --enable-soap --enable-wddf --enable-yp --enable-zend-multibyte --enable-force-cgi-redirect --enable-safe-mode --enable-versioning --enable-url-includes --enable-trans-sid --with-ldap --enable-discard-path --with-mcal --with-mod-dav --with-kerberos --enable-gd-imgstrttf --with-gdbm --with-gettext --disable-cgi --with-openssl --with-zip

(Please note that this might not work for you as-is - I've got lots of extra stuff I put in here, mostly to do with the GD image library and some other stuff).

Note that installing your "own" PHP might mess up stuff you had that was working on your "old" PHP install, since you might miss certain configuration parameters that your "old" PHP was compiled with.

Hope this helps!


All times are GMT -5. The time now is 04:33 AM.