PHP Rebuild Error

Saurumon2

Verified User
Joined
Sep 11, 2008
Messages
11
I went to recompile PHP because I got the "could not find /usr/bin/php blah blah error" And then this is why it wouldn't compile. Any solution?

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of apxs follows:
./configure: line 6669: apxs: command not found
configure: error: Aborting

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
You should install perl first.

Second

cd /usr/local/directadmin/custombuild
./build update
./build all d
 
Code:
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/support'
make: *** [all-recursive] Error 1

Now I got that error....
 
Fixed. I found that on 64bit, some of the libs don't link. So you need to manually do that. Anyone that has this problem run:


ln -sf /usr/lib64/libgssapi_krb5.so.2.2 /usr/lib/libgssapi_krb5.so

ln -sf /usr/lib64/libkrb5.so.3.3 /usr/lib/libkrb5.so

ln -sf /usr/lib64/libk5crypto.so.3.1 /usr/lib/libk5crypto.so

ln -sf /lib64/libcom_err.so.2 /usr/lib/libcom_err.so

ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so

ln -sf /usr/lib64/libm.so /usr/lib/libm.so

ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so


This should clear up many if not all of your dynamic linking.
 
Back
Top