LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 10: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, 05: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,477

Rep: Reputation: 87
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:17 AM
PHP recompiling ( without source ) TheSpy Slackware 2 02-21-2005 02:43 PM
recompiling php kris-nz Linux - Software 1 11-30-2004 11:52 PM
GDBM Need for zinf install... What's GDBM??? Stevetgn Linux - Software 5 07-16-2004 07:00 AM
recompiling php question j-ray Linux - Software 5 07-20-2002 05:10 PM


All times are GMT -5. The time now is 05:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration