[root@localhost apa]# mv php-5.2.8 php
[root@localhost apa]# cd php
[root@localhost php]# ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/loc
al/apache2/bin/apxs/ --with/-config-file-path=/usr/local/lib --enable-track-vars
 --with-xml --withe-MySQL
configure: error: --with/-config-file-path=/usr/local/lib: invalid option; use --help to show usage
You have new mail in /var/spool/mail/root

解决方案 »

  1.   

    +--------------------------------------------------------------------+
    |                        *** WARNING ***                             |
    |                                                                    |
    | You will be compiling the CGI version of PHP without any           |
    | redirection checking.  By putting this cgi binary somewhere in     |
    | your web space, users may be able to circumvent existing .htaccess |
    | security by loading files directly through the parser.  See        |
    | http://www.php.net/manual/security.php for more details.           |
    +--------------------------------------------------------------------+
    | License:                                                           |
    | This software is subject to the PHP License, available in this     |
    | distribution in the file LICENSE.  By continuing this installation |
    | process, you are bound by the terms of this license agreement.     |
    | If you do not agree with the terms of this license, you must abort |
    | the installation process at this point.                            |
    +--------------------------------------------------------------------+Thank you for using PHP.
      

  2.   

    +--------------------------------------------------------------------+
    | License:                                                           |
    | This software is subject to the PHP License, available in this     |
    | distribution in the file LICENSE.  By continuing this installation |
    | process, you are bound by the terms of this license agreement.     |
    | If you do not agree with the terms of this license, you must abort |
    | the installation process at this point.                            |
    +--------------------------------------------------------------------+Thank you for using PHP.Notice: Following unknown configure options were used:--enable-track-vars
    --with-xmlCheck './configure --help' for available options
      

  3.   

    onfigure: error: --with/-config-file-path=/usr/local/lib:改成   --with-config-file-path=/usr/local/lib 再配置一下看看 
      

  4.   

     ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/loc 
    al/apache2/bin/apxs/ --with/-config-file-path=/usr/local/lib --enable-track-vars 
    --with-xml --withe-MySQL
    =>
     ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/loc 
    al/apache2/bin/apxs/ --with-config-file-path=/usr/local/lib --enable-track-vars 
    --with-xml --with-MySQL