- 论坛徽章:
- 0
|
在网上看了N篇帖子,都没能解决问题。特来向各位大侠请教一二!!!
环境:RedHat9+Apache2+zlib+jpeg6+libpng+gd+mysql5+php5
现在就差PHP5装不上了。搞了三、四天时间了,都还没搞定~~~:em12:
[root@server7 php-5.1.2]#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/www/bin/apxs --with-jpeg-dir=/usr/local/jpeg6c --with-png-dir=/usr/local/libpng --with-gd --enable-trace-vars --with-zlib-dir=/usr/local/zlib -with-mysql=/usr/local/mysql --enable-so
.
.
.
.
[root@server7 php-5.1.2]#make
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
[root@server7 php-5.1.2]# make install
Installing PHP SAPI module: apache2handler
/usr/local/www/build/instdso.sh SH_LIBTOOL='/usr/local/www/build/libtool' libphp5.la /usr/local/www/modules
/usr/local/www/build/libtool --mode=install cp libphp5.la /usr/local/www/modules/
cp .libs/libphp5.lai /usr/local/www/modules/libphp5.la
cp .libs/libphp5.a /usr/local/www/modules/libphp5.a
ranlib /usr/local/www/modules/libphp5.a
chmod 644 /usr/local/www/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /home/welldrong/php-5.1.2/libs'
Warning! dlname not found in /usr/local/www/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/www/modules/libphp5.so
chmod: 无法取得 ‘/usr/local/www/modules/libphp5.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
[root@server7 php-5.1.2]# libtool --finish /home/welldrong/php-5.1.2/libs
PATH="$PATH:/sbin" ldconfig -n /home/welldrong/php-5.1.2/libs
----------------------------------------------------------------------
Libraries have been installed in:
/home/welldrong/php-5.1.2/libs
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so( manual pages.
----------------------------------------------------------------------
[root@server7 php-5.1.2]# make install
Installing PHP SAPI module: apache2handler
/usr/local/www/build/instdso.sh SH_LIBTOOL='/usr/local/www/build/libtool' libphp5.la /usr/local/www/modules
/usr/local/www/build/libtool --mode=install cp libphp5.la /usr/local/www/modules/
cp .libs/libphp5.lai /usr/local/www/modules/libphp5.la
cp .libs/libphp5.a /usr/local/www/modules/libphp5.a
ranlib /usr/local/www/modules/libphp5.a
chmod 644 /usr/local/www/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /home/welldrong/php-5.1.2/libs'
Warning! dlname not found in /usr/local/www/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/www/modules/libphp5.so
chmod: 无法取得 ‘/usr/local/www/modules/libphp5.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
[root@server7 php-5.1.2]#
老是说Warning! dlname not found in /usr/local/www/modules/libphp5.la
但我看过这个目录下面明明有libphp5.la这个文件的,但确实没有/usr/local/www/modules/libphp5.so这个文件。
郁闷了,以前从来没有这个问题。现在就算我装回PHP4也不行了,又会提示没有libphp4.so -.-!! |
|