LinuxQuestions.org
Help answer threads with 0 replies.
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 01-11-2006, 11:09 PM   #1
arcow
Member
 
Registered: Jan 2006
Distribution: RedHat linux 9
Posts: 31

Rep: Reputation: 15
problem about GD library link to PHP


redhat linux 9
i had installed php+mysql+apache on the OS
and also GD library installed
but when I use phpinfo() to show ,the result contains no GD library
i want to know how to link the GD library with the php?
 
Old 01-12-2006, 12:31 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
Make sure your ./configure line for PHP contains

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-apache2 --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-gd

when compiling PHP.

This should insure that GD will be picked up in PHP, and that its full range of graphics formats will be supported. (Of course, you'll need to provide your own jpeglib, pnglig and tiff libs, as well as your own freetype location - those given above are only valid on my system, where I installed them myself.)
 
Old 01-12-2006, 03:01 AM   #3
arcow
Member
 
Registered: Jan 2006
Distribution: RedHat linux 9
Posts: 31

Original Poster
Rep: Reputation: 15
you mean,i need to recompile my php?
 
Old 01-16-2006, 01:02 PM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
Yep... you will need to do that.
 
Old 02-03-2006, 02:09 AM   #5
GSX
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Debian Etch, kernel 2.6.18
Posts: 103

Rep: Reputation: 15
Hi,

i have the same problem at the moment (running debian etch)..
I installed php via the APT tool..May i use /.configure --with-gd anyway?

Because with "dpkg-reconfigure php4" it didnīt work..


greetz
gsx
 
  


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
PHP & GD library problem mmilan Linux - Software 2 11-15-2005 06:00 AM
Problem installing - libtool: link: cannot find the library `__LIBGL_PATH__/libGL.la' sparX CG Linux - Software 4 11-14-2005 05:45 PM
link using libuClibc-0.9.20.so library nignogeta Linux - Software 0 06-30-2005 06:27 AM
How to link a library to gcc? Andrea_81 Programming 6 05-05-2005 04:22 AM
KDevelop, how to link a library?? Umanga Programming 1 01-10-2005 05:13 PM


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

Main Menu
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