- 论坛徽章:
- 0
|
Fb 6.1-res
apache版本2.0.54
mysql-4.0.20
php-4.4.0
编译mysql
./configure --prefix=/usr/local/mysql --with-charset=gbk
make && make install
编译apache
./configure --enbale-so --enable-rewrite=shared
make && make install
编译php出错
出错信息如下
./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs
loading cache ./config.cache
checking host system type... i386-unknown-freebsd6.1
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for bison... no
checking for byacc... byacc
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking whether byte ordering is bigendian... no
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
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 for mod_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 /usr/local/apache2/bin/apxs follows:
./configure: /usr/local/apache2/bin/apxs: not found
configure: error: Aborting
第一条出错信息说明perl没有安装。我于是使用sysinistall安装了perl
但是从起计算机后从新编译还是出现同样的错误?
请教这是为什么呢? |
|