但卻發生以下問題
我重慣很多次apache都沒問題 確實有apxs檔案
都是在要慣php時發生錯誤
請告訴我哪邊出了問題 才會一直無法灌成功呢?
謝謝
www2# ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs\ --prefix=/usr/local/php
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i386-unknown-freebsd6.2
checking target system type... i386-unknown-freebsd6.2
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 how to run the C preprocessor... gcc -E
checking for icc... no
checking for suncc... no
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 whether ln -s works... yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... yes
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for bison... no
checking for byacc... byacc
checking for bison version... bison: not found
invalid
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
checking for re2c... no
configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking whether to enable computed goto gcc extension with re2c... no
checking whether to force non-PIC code in shared modules... yes
checking whether /dev/urandom exists... 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...
更新1:
後半是 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
更新2:
最後 The output of /usr/local/apache/bin/apxs --prefix=/usr/local/php follows ./configure: /usr/local/apache/bin/apxs: not found configure: error: Aborting
更新3:
因為老闆希望我學,我同事很忙就把整個主機丟給我任意玩 我正在霧裡看花 是否重灌Linux會比較快速? 另外這個系統已經灌過mysql,php等 因為舊的php不支援unit 8 所以我才想更新php 如果我用您說的套件灌 會不會讓我之前的資料庫資料都不見了呢? 我的書很舊 沒有寫那麼多 不過我會試試您說的 謝謝