Hello,
I am trying to get apache2 and php5 installed together in my LFS 6.0.
Somehow I keep failing in doing so correctly. 'make install' php5 gives
an error stating a file 'libphp5.so' not found after its somehow not
created. Any insight is greatly apreciated.
I started building / installing httpd-2.0.53 using:
patch -Np1 -i ../httpd-2.0.53-config-1.patch &&
./configure --prefix=/usr --enable-layout=FHS --enable-mods-shared=all \
--enable-ssl &&
make &&
make install
Since this looks ok (servers runs ok) I do php5 configure and build:
(libxml & mySQL are already installed)
./configure --prefix=/usr --sysconfdir=/etc --with-apxs2=/usr/sbin/apxs
--with-config-file-path=/etc --with-zlib --enable-bcmath
-with-bz2 --enable-calendar --enable-dba --enable-exif
--enable-ftp --with-gettext --with-iconv --with-ncurses
--with-readline --enable-libxml --with-mysql &&
make
It goes wrong when I do:
make install
[output make install php5-5.0.3]
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
Installing PHP SAPI module: apache2handler
/usr/lib/apache/build/instdso.sh
SH_LIBTOOL='/usr/lib/apache/build/libtool' libphp5.la /usr/lib/apache
/usr/lib/apache/build/libtool --mode=install cp libphp5.la /usr/lib/apache/
cp .libs/libphp5.lai /usr/lib/apache/libphp5.la
cp .libs/libphp5.a /usr/lib/apache/libphp5.a
ranlib /usr/lib/apache/libphp5.a
chmod 644 /usr/lib/apache/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/tmp/src/php5-5.0.3/libs'
Warning! dlname not found in /usr/lib/apache/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/lib/apache/libphp5.so
chmod: cannot access `/usr/lib/apache/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
Using google I can't seem to find any solution. I'm asuming I must be
doing something wrong, but don't know what.
I also tried php-5.0.4 and php5-STABLE-200506172238 but all give the
same error. Did I build apache2 incorrect perhaps ?
I'm not sure how to proceed. Help is apreciated. Thanks for reading so far.
Greetz,
Cor Lem
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page