-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Tom West" <tom.west-brainpsynet.net> a écrit dans le message de
news:3F204059.9040506psynet.net...
> Not sure if this is quite the right newsgroup, but its the closest I
> could find.
>
> I have Redhat Linux 9 and am trying to install Apache & PHP without much
> luck. I found a decent enough set of instructions here:
> [url]http://www.sysbotz.com/articles/amp.htm[/url] but when I type 'make' for the
> first time (to make PHP), after a few minutes I get this error message:
> Collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1
Well... what kind of installation have you made of RH ?? Any 'standard' as
proposed or the minimal one ?
If you choose the minimal install then some package should be missing such
as gcc etc... have a look at your CD and install the gcc rpm and is
dependencies.

You will also need the following for being comatible with almost everything
developped in PHP:

freetype-2.1.3-6.i386.rpm
gd-1.8.4-11.i386.rpm
gd-devel-1.8.4-11.i386.rpm
libjpeg-6b-26.i386.rpm
libpng-1.2.2-16.i386.rpm

Also be sure to have compiled Apache like this:
- - ./configure --enable-so

Once this done go back to your PHP temporary folder (where you unpacked the
files... I hop you're compiling v4.3.2 !) and do this:

- - make clear (if it reports an error don't care)
- - ./configure --with-gd=/usr --with-apxs2=/usr/local/apache2/bin/apxs
- - make
- - make install
- -cp php.ini-dist /usr/local/lib/php.ini
- - edit httpd.conf and find this: "LoadModule php4_module
modules/libphp4.so" ..... and add this just below " AddType
application/x-httpd-php .php"

The restart Apache and everything should run just fine !

Have Fun !
Stephane.

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPyEueY7t8lAtcDudEQI26gCghQthNVVH1HMN+7DLlktsr7 NQ4fMAoLK0
ucvNIYNiD5u3ychjOku8FP+O
=5dzS
-----END PGP SIGNATURE-----