Forum Moderators: coopster

Message Too Old, No Replies

Compiling & Installing PHP

as an Apache 2 DSO

         

bluedalmatian

4:28 pm on Mar 12, 2005 (gmt 0)

10+ Year Member



I'm trying to build PHP5 using the following configure script

./configure \
--with-axps2=/usr/local/apache2/modules/php5.0.2.so \
--with-mysql=/usr/local/mysql \
--disable-libxml

which as I understand it, would (after make & make install), create a binary dso file at /usr/local/apache2/modules/php5.0.2.so yet after everything is complete - which runs fine without errors, theres nothing there.

Is my thinking wrong?

bluedalmatian

2:11 pm on Mar 15, 2005 (gmt 0)

10+ Year Member



Ok so Ive done some investigating and found the book I was using wrong wrong.

firstly its apxs not axps!, secondly it points to the apxs binary itself!

so ive modified my configure command to this

./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql/ \
--disable-libxml

which runs fine, but when I do make I get the following and it stops:

main/internal_functions.lo -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp5.la
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

I'm now following 3 books and the PHP website and I'm sure Im doing everythngi right yet I cant find any mention of what this error means?

Can anyone explain it please?

Thanks
AW

ergophobe

9:30 pm on Mar 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




file not recognized: File truncated

Have you checked the MD5 hash of your download to make sure that the archive is not corrupted?

bluedalmatian

11:35 pm on Mar 24, 2005 (gmt 0)

10+ Year Member



Have you checked the MD5 hash of your download to make sure that the archive is not corrupted?

You're absoluetly right, Thanks for that pointer.