LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2005, 09:47 PM   #1
DGath
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Rep: Reputation: 0
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 =)
 
Old 11-30-2005, 04:02 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recompiling php arichardson Fedora 2 11-21-2005 07:17 AM
PHP recompiling ( without source ) TheSpy Slackware 2 02-21-2005 01:43 PM
recompiling php kris-nz Linux - Software 1 11-30-2004 10:52 PM
GDBM Need for zinf install... What's GDBM??? Stevetgn Linux - Software 5 07-16-2004 06:00 AM
recompiling php question j-ray Linux - Software 5 07-20-2002 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration