- 主题:cygwin下安装smth出错求助
安装到php时出现Error,下面是显示信息,这是什么原因呢?
$ ./configure --with-apache=../apache_1.3.27
loading cache ./config.cache
checking for Cygwin environment... yes
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... i686-pc-cygwin
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... no
checking if compiler supports -Wl,-rpath,... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parser
s.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... lex: not found
configure: error: cannot find output from lex; giving up
--
FROM 166.111.167.*
装个flex试一试...
【 在 jason (--) 的大作中提到: 】
: 安装到php时出现Error,下面是显示信息,这是什么原因呢?
: $ ./configure --with-apache=../apache_1.3.27
: loading cache ./config.cache
: ...................
--
FROM 128.12.155.*
果然是,多谢了,:)
【 在 atppp (Big Mouse) 的大作中提到: 】
: 装个flex试一试...
--
FROM 166.111.167.*
make的时候又出错了,:(
ext/xml/xml.o(.text+0x34ca): In function `zif_xml_get_error_code':
/home/src/php-4.3.1/ext/xml/xml.c:1397: undefined reference to `__imp__php_XML_G
etErrorCode'
ext/xml/xml.o(.text+0x3557): In function `zif_xml_error_string':
/home/src/php-4.3.1/ext/xml/xml.c:1412: undefined reference to `__imp__php_XML_E
rrorString'
ext/xml/xml.o(.text+0x365a): In function `zif_xml_get_current_line_number':
/home/src/php-4.3.1/ext/xml/xml.c:1431: undefined reference to `__imp__php_XML_G
etCurrentLineNumber'
ext/xml/xml.o(.text+0x36ea): In function `zif_xml_get_current_column_number':
/home/src/php-4.3.1/ext/xml/xml.c:1447: undefined reference to `__imp__php_XML_G
etCurrentColumnNumber'
ext/xml/xml.o(.text+0x377a): In function `zif_xml_get_current_byte_index':
/home/src/php-4.3.1/ext/xml/xml.c:1463: undefined reference to `__imp__php_XML_G
etCurrentByteIndex'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php.exe] Error 1
【 在 jason (--) 的大作中提到: 】
: 果然是,多谢了,:)
--
FROM 166.111.167.*
没人知道么?:((
翻了翻前面的文章,也有几个人碰到了同样的问题,不过好像都没有谁把解决方法写出来阿
【 在 jason (--) 的大作中提到: 】
: make的时候又出错了,:(
: ext/xml/xml.o(.text+0x34ca): In function `zif_xml_get_error_code':
: /home/src/php-4.3.1/ext/xml/xml.c:1397: undefined reference to `__imp__php_XML_G
: ...................
--
FROM 166.111.167.*
看 doc/INSTALL.cygwin
【 在 jason (--) 的大作中提到: 】
: 安装到php时出现Error,下面是显示信息,这是什么原因呢?
: $ ./configure --with-apache=../apache_1.3.27
: loading cache ./config.cache
: ...................
--
FROM 61.49.127.*