- 论坛徽章:
- 0
|
环境如下:solaris7---php-4.1.1---apache_1.3.36
已安装如下软件包:
autoconf-2.59、automake-1.9、bison-1.875d、flex-2.5.31、gcc-3.4.2、gd-2.0.33、gdb-6.0
libgcc-3.3、libtool-1.5、libxml-1.8.17、libxml2-2.6.16、make-3.80、ncurses-5.4、zlib-1.2.3
按照php-4.1.1中的INSTALL文件所述,采用Static方式安装apache和php,步骤如下:
$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.36 --enable-track-vars
$ make
$ make install
$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
$ make
$ make install
apache的话configure没有问题,但是当进入php目录configure时,出现如下错误:
Configuring libtool
checking for Cygwin environment... no
checking for mingw32 environment... no
checking build system type... sparc-sun-solaris2.7
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... configure: error: installation or configuration problem: compiler cannot create executables.
不知是何原因,换了好几个php版本,都是不行!请高手指教,谢了!!!!!!!
[ 本帖最后由 jackyy 于 2006-7-26 16:41 编辑 ] |
|