先试一下你的PHP文件能不能运行

解决方案 »

  1.   

    freebsd5.4 + mysql4.0.21 + apache2.0.51 + php5.0.5的环境一切都正常,现在项目有新的需求,php5自带的GD库2.0.28 不能满足需要,所以才想装MagickWand,急死我了
    刚找了php.in文件,我的这个错误出现在phpize_check_autotool函数上,如下,请帮忙看看
    phpize_check_autotools()
    {
      test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf
      test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader
      
      if ! test -x "`$php_shtool path $PHP_AUTOCONF`"; then
        cat <<EOF
    Cannot find autoconf. Please check your autoconf installation and the \$PHP_AUTOCONF 
    environment variable is set correctly and then rerun this script. EOF
        exit 1
      fi
      if ! test -x "`$php_shtool path $PHP_AUTOHEADER`"; then
        cat <<EOF
    Cannot find autoheader. Please check your autoconf installation and the \$PHP_AUTOHEADER 
    environment variable is set correctly and then rerun this script. EOF
        exit 1
      fi
    }
      

  2.   

    试试用portupgrade -f autoconf重装autoconf看看
      

  3.   

    谢谢各位了,我已经搞定了,原来是因为用ports安装automake,autoconf后在/usr/local/bin下面生成的执行文件都是autoconf259     autoheader259   autom4te259  autoreconf259   autoscan259     autoupdate259这样带了版本后缀的名字,phpize中只认原始的文件名,我把名字改了就可以了,呵呵