- 论坛徽章:
- 0
|
我已经用 find 找到了 apxs
- hamasbsd# find / | grep apxs
- /usr/local/apache/bin/apxs
复制代码
apache 版本是 2.0.55
可是在 configure php 的时候仍旧出错:
- loading cache ./config.cache
- checking for egrep... grep -E
- checking for a sed that does not truncate output... /usr/bin/sed
- 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)
复制代码
我用的是
- ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/etc/httpd --with-system-regex --disable-debug --with-zlib --enable-magic-quotes --enable-track-vars --with-jpeg-dir=/usr/local --with-gd=/usr/local
复制代码
以前在 linux 下(RH9)都没有这样的问题,由于刚接触 freebsd,因此多少有些不熟悉
感谢大家,感谢。 |
|