LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error Installing/Configuring PHP (https://www.linuxquestions.org/questions/linux-newbie-8/error-installing-configuring-php-183785/)

squirellplaying 05-20-2004 01:27 PM

Error Installing/Configuring PHP
 
http://www.freewebs.com/squirelplayintag/Screenshot.png
That is the error I get after I type in this:
Code:

cd /usr/local/src/php-4.3.6
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-mm=shared \
--enable-safe-mode \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx=shared \
--enable-xml \
--with-dom \
--with-gd \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-regex=system \
--with-xml \
--with-zlib-dir=/usr/lib

Oy the last part of LAMP and I'm having problems. It was going so nicely too! :(

david_ross 05-20-2004 01:34 PM

That page doesnt exist even if you change the URL - perhaps you can just post the error.

squirellplaying 05-20-2004 02:56 PM

Opps. I fixed the link. The error:
configure:error:libpng.(a|so) not found.

david_ross 05-20-2004 02:59 PM

You can download libpng from:
http://sourceforge.net/project/showf...?group_id=5624

Just install that and then try the php install again.

squirellplaying 05-20-2004 03:02 PM

Where do I install it to. Do I do cd <dir>, then tar zxf filename ?

david_ross 05-20-2004 03:06 PM

yes and then follow the instructions in the tarball.

squirellplaying 05-20-2004 03:13 PM

Ok I did tar zxf libpng-1.2.5.tar.gz and it made a folder in my root folder. Is it ok there? Is that all I have to do? I didn't see any installing instructions in the folder.

squirellplaying 05-20-2004 06:48 PM

I also ran the Redhat update which had the file, or so I thought, in it but still no change.

squirellplaying 05-21-2004 03:13 PM

Anyone :(

david_ross 05-21-2004 06:35 PM

Quote:

Originally posted by squirellplaying
Ok I did tar zxf libpng-1.2.5.tar.gz and it made a folder in my root folder. Is it ok there? Is that all I have to do?
No - you need to install it.

Quote:

Originally posted by squirellplaying
I didn't see any installing instructions in the folder.
Well I was surprised that there were no instructions so I downloaded the file myself and oddly enough there was a file called "INSTALL" which contained all the installation instructions.

squirellplaying 05-21-2004 06:47 PM

Ugg :( I was looking in the read me's. I have no idea what I'm doing. Do I use makefile.std?

david_ross 05-21-2004 06:52 PM

I think I would use "makefile.linux".

squirellplaying 05-21-2004 08:59 PM

Ok. So I downloaded the zlib file. did ./configure, then make test, then make install. When back to the libpng files and followed the directions. After the make I tried the php configure commands and still got the same error. :( I don't understand what I'm doing at all.

squirellplaying 05-22-2004 07:48 PM

Can I just do ./configure make make install. Do I need all those other commands?

david_ross 05-23-2004 09:39 AM

Quote:

Originally posted by squirellplaying
Can I just do ./configure make make install. Do I need all those other commands?
Which other commands?

Quote:

Originally posted by squirellplaying
Ok. So I downloaded the zlib file. did ./configure, then make test, then make install. When back to the libpng files and followed the directions. After the make I tried the php configure commands and still got the same error.
Did you install libpng?


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