LinuxQuestions.org
Register a domain and help support LQ
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 09-04-2002, 11:51 AM   #1
grubjo
LQ Newbie
 
Registered: Jul 2002
Posts: 19

Rep: Reputation: 0
Unhappy Compile php


Hi,
I use RH 7.3 and I'm trying to build php 4.2.2 (i've already installed apache 2, gd, gd-devel, gd-utils). When I start

./configure --with-apache2=/usr/local/apache2.0.4/bin/apxs --enable-versioning --enable-url-includes --enable-trans-sid --enable-sysvshm=yes --enable-sysvsem=yes --with-ftp --with-config-file-path=/etc --with-gd=/usr/lib/ --with-zlib-dir=/usr/lib/

I get the message "configure: error: Unable to find libgd.(a|so) anywhere under /usr/lib/". I've checked it 10 times - in this directory are the files. It doesn't find also the locations of libpng, FreeType, etc althought I've installed them.

Has anyone an idea?
Bye, Johannes
 
Old 09-04-2002, 03:30 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Have you installed gd-devel? That's where the library is from.
 
Old 09-04-2002, 05:51 PM   #3
grubjo
LQ Newbie
 
Registered: Jul 2002
Posts: 19

Original Poster
Rep: Reputation: 0
Yes, I've installed every package, which contains anything with gd.
 
Old 09-05-2002, 11:52 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
What's in your /etc/ld.so.conf? Maybe try to add /usr/lib into it or use
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib
 
Old 09-08-2002, 05:23 AM   #5
LammaDog
LQ Newbie
 
Registered: Sep 2001
Location: Colorful Colorado
Posts: 8

Rep: Reputation: 0
sweet!!! thanks Mara

adding /usr/lib in the /etc/ld.so.conf was totally the answer I was looking for, fixed me right up
 
Old 09-08-2002, 05:27 AM   #6
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
btw, you should NOT run apache 2 with php yet and if you really need to do so then you should grab the latest php version from snaps.php.net ... just a hint
 
Old 09-09-2002, 03:59 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Sometimes it works...
 
Old 09-09-2002, 04:19 PM   #8
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well I have a kind of production server with apache 2.0.41-dev and php 4.3-dev installed :P
 
  


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 Compile Problem xemoflyerx Linux - Software 2 01-23-2005 05:36 PM
compile php with gd ? sonaatti Slackware 3 11-29-2004 11:46 AM
can't compile php 4.3.3 adrianmak Linux - Software 3 11-20-2003 09:06 PM
Apache 2 and PHP 4.3.3 compile help gquiring Red Hat 1 11-03-2003 08:14 PM
PHP 4.3 compile on Redhat 9 men$an Linux - Software 1 05-23-2003 03:48 PM


All times are GMT -5. The time now is 07:01 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration