LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 619|回复: 0

mysql + apache-2 + php 出现的问题

[复制链接]
发表于 2005-9-3 18:26:41 | 显示全部楼层 |阅读模式
mysql和apache2安装都正常,
mysql的版本是mysql-4.0.24
apache的版本是apache_1.3.28
安装php的时候出问题了,
我的操作系统是Redhat9.0,下面是我的安装步骤:

tar zxvf php-4.0.6.tar.gz

cd php-4.0.6

./configure --prefix=/opt/php --with-mysql=/opt/mysql --with-apxs2=/opt/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=/opt/php/etc

这个过程进行完之后提示:

+--------------------------------------------------------------------+
| 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.

然后我执行

make

这是make的过程

Making all in Zend
make[1]: Entering directory `/opt/soft/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../main   -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM  -g -O2 -pthread -c zend_language_scanner_cc.cc
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
                 from FlexLexer.h:47,
                 from zend_language_scanner_cc.cc:240:
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from FlexLexer.h:47,
                 from zend_language_scanner_cc.cc:240:
/usr/include/c++/3.2.2/backward/iostream.h:36: using declaration `istream'
   introduced ambiguous type `istream'
In file included from zend_language_scanner_cc.cc:2712:
zend_istdiostream.h:8: 'stdiobuf' is used as a type, but is not defined as a
   type.
zend_istdiostream.h:11: syntax error before `*' token
zend_istdiostream.h: In constructor `istdiostream::istdiostream(FILE*)':
zend_istdiostream.h:10: class `istdiostream' does not have any field named `
   _file'
zend_istdiostream.h:10: no matching function for call to `
   std::basic_istream<char, std::char_traits<char> >::basic_istream()'
/usr/include/c++/3.2.2/iosfwd:58: candidates are: std::basic_istream<char,
   std::char_traits<char> >::basic_istream(const std::basic_istream<char,
   std::char_traits<char> >&)
/usr/include/c++/3.2.2/istream:77:                 std::basic_istream<_CharT,
   _Traits>::basic_istream(std::basic_streambuf<_CharT, _Traits>*) [with _CharT
   = char, _Traits = std::char_traits<char>]
zend_istdiostream.h:10: `_file' undeclared (first use this function)
zend_istdiostream.h:10: (Each undeclared identifier is reported only once for
   each function it appears in.)
zend_istdiostream.h: At global scope:
zend_istdiostream.h:12: parse error before `}' token
zend_language_scanner_cc.cc: In function `void
   zend_file_handle_dtor(zend_file_handle*)':
zend_language_scanner_cc.cc:2823: no matching function for call to `
   std::basic_streambuf<char, std::char_traits<char> >::stdiofile()'
zend_language_scanner_cc.cc: In function `int
   open_file_for_scanning(zend_file_handle*, zend_compiler_globals*)':
zend_language_scanner_cc.cc:2894: invalid conversion from `int' to `const char*
   '
zend_language_scanner_cc.cc:2894:   initializing argument 1 of `
   std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*,
   std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]'
zend_language_scanner_cc.cc: In member function `int
   ZendFlexLexer::lex_scan(zval*, zend_compiler_globals*)':
zend_language_scanner_cc.cc:4705: cannot convert `std::istream*' to `istream*'
   in assignment
zend_language_scanner_cc.cc: In member function `void
   zendFlexLexer::yy_load_buffer_state()':
zend_language_scanner_cc.cc:5241: cannot convert `istream*' to `std::istream*'
   in assignment
zend_language_scanner_cc.cc: In member function `void
   zendFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
zend_language_scanner_cc.cc:5292: cannot convert `std::istream*' to `istream*'
   in assignment
make[1]: *** [zend_language_scanner_cc.lo] Error 1
make[1]: Leaving directory `/opt/soft/php-4.0.6/Zend'
make: *** [all-recursive] Error 1

请问问题到底出在哪???
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表