我去掉那个参数之后.编译成功.
但同时安装php时却编译错误:
[root@localhost php-4.3.1]# ./configure --with-apxs=/usr/local/www/bin/apxs --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-dom --with-gd --with-freetype-dir=/usr/lib --with-png-dir --with-iconv --with-jpeg-dir --with-zlib --enable-track-vars
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for working sed... (cached) sed
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for ranlib... (cached) ranlib
checking whether ln -s works... (cached) yes
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking bison version... 1.35 (ok)
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/www/bin/apxs follows
./configure: line 3215: /usr/local/www/bin/apxs: No such file or directory
configure: error: Aborting
【 在 fye (扉) 的大作中提到: 】
: 那我现在安装的时候可以不要这项参数然后去安装php了?
--
FROM 61.179.12.*