LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-28-2006, 03:09 AM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
recompile php 5.1.4 against a new version of GD and mysql support


Hello
it seems that php 5 has included the gd library, but it happens that it doesn't have jpeg support therefore i installed and configured libjpeg (jpeg-6b) and downloaded a version of GD 2.0.33 and compiled it and installed.
then i configured php with the --with-gd switch as well as --with-mysql.
do i have to specify the directory for mysql and gd? or to jpeg-6b?
thank you in advance
Mario
 
Old 08-28-2006, 04:33 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Since you've installed your own gd and jpeg libraries you must include the libraries installation path in your ./configure script. Mind that from php 5.x you have to give also the directory where mysql_config is. So, I guess the following will work in your case:
Code:
./configure --with-mysql=/path/tol/mysql  –with-mysqli=/path/to/mysql/bin/mysql_config --with-gd=/path/to/gd-lib -with-jpeg=/path/to/jpeg-lib --with-zlib ...
Regards
 
Old 08-28-2006, 02:54 PM   #3
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
hello, how can i know which are the directories for zlib, jpeglib, png?? i really don't know.
thank you
 
Old 08-29-2006, 02:14 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The default installation dir is /usr/lib. If you installed using your package manager they should be in /usr/lib. If you compiled your own versions of gd and libjpeg from source they've installed in the dir you defined with your ./configure script (the --prefix=.. option).
If you are unsure you can use
Code:
updatedb
locate libgd
locate libjpeg
 
  


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
what mysql version does support NDBCLUSTER for slackware flatform sardonyx Linux - Software 0 04-18-2006 01:35 AM
php <-> MySql support boardtc Mandriva 8 04-06-2005 01:05 AM
Problem with php and mysql support... Jake_B Linux - Software 3 10-18-2004 11:18 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM
problem between mysql and php ( new version 5) abd_bela Linux - Software 3 08-13-2003 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:37 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