apache php instalations fejl
Jeg får denne her fejl når jeg køre make ;-(-lpng -lz -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o sapi/cli/php
/usr/bin/ld:ext/zlib/zlib.lo: file format not recognized; treating as linker script
/usr/bin/ld:ext/zlib/zlib.lo:2: parse error
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[root@ns3 php-4.3.1]#
Min server er en Redhat 9 og her har lavet en instalation der ser sådan her ud.
jeg har brugt en guied fra snort.org Link : http://www.snort.org/docs/snort_acid_rh9.pdf
har lige efter givet den her kort
wget http://flow.dl.sourceforge.net/sourceforge/libpng/zlib-1.1.4.tar.gz
tar -xvzf zlib-1.1.4.tar.gz
cd zlib-1.1.4
./configure; make test
make install
cd ..
wget http://www.tcpdump.org/release/libpcap-0.7.2.tar.gz
tar -xvzf libpcap-0.7.2.tar.gz
cd libpcap-0.7.2
./configure
make
make install
cd ..
tar xvzf mysql-4.0.12.tar.gz
cd mysql-4.0.12
./configure --prefix=/usr/local/mysql
make
make install
tar -xvzf httpd-2.0.45.tar.gz
cd httpd-2.0.45
./configure --prefix=/www --enable-so
make
make install
cd ..
tar -xvzf php-4.3.1.tar.gz
cd php-4.3.1
./configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-file-path=/www/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local --with-gd
make
