LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling PHP (https://www.linuxquestions.org/questions/linux-software-2/compiling-php-88826/)

Risen 09-03-2003 10:04 AM

Compiling PHP
 
Hello,

I'm trying to compile php 4.3.3 for Apache 2. My config line is ./configure --with-apxs2=/usr/local/apache2/bin/apxs. It configures okay, but when I go to make, it processes some stuff and then dies:

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

What might be causing this?

mito_pm 10-12-2003 11:47 AM

I have the same error... please help us!

Risen 10-13-2003 08:11 AM

As you can tell, I didn't get any replies to this, posted some time ago. I did manage to get PHP compiled, though as a newbie myself I'm not entirely sure what fixed it. I tried a lot of things. Here's my best guess, see if it works for you: After you do "./configure", type "make clean" before you do "make." If you've been messing around with configuration parameters a lot as I had, it may help.

I'm still not entirely certain as to the exact function of "make clean," but I assume it must flush caches and such. Perhaps cleaning out files that did not make properly in a previous attempt? Maybe an experienced user could reply and help clear this up.

mito_pm 10-13-2003 12:28 PM

Thx a lot, i found it later on another post, but here it is clearly ;)

Now PHP is fine.


All times are GMT -5. The time now is 04:28 AM.