当前位置: 技术问答>linux和unix
php编译时报错,急!急!急!
来源: 互联网 发布时间:2016-06-03
本文导语: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-curl=/usr/lib --enable-ftp --with-libxml-dir=/usr/lib --with-libexpat-dir=/usr/lib --enable-soap --with-xsl -...
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-curl=/usr/lib --enable-ftp --with-libxml-dir=/usr/lib --with-libexpat-dir=/usr/lib --enable-soap --with-xsl --with-gd --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/include --with-freetype-dir=/usr/lib --enable-mbstring --with-mime-magic
已通过。
make时提示错误信息:
ext/xml/.libs/xml.o: In function `zif_xml_get_current_byte_index':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1500: undefined reference to `php_XML_GetCurrentByteIndex'
ext/xml/.libs/xml.o: In function `zif_xml_get_current_column_number':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1484: undefined reference to `php_XML_GetCurrentColumnNumber'
ext/xml/.libs/xml.o: In function `zif_xml_get_current_line_number':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1468: undefined reference to `php_XML_GetCurrentLineNumber'
ext/xml/.libs/xml.o: In function `zif_xml_get_error_code':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1434: undefined reference to `php_XML_GetErrorCode'
ext/xml/.libs/xml.o: In function `php_xml_parser_create_impl':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1113: undefined reference to `php_XML_ParserCreate_MM'
/usr/local/src/php-5.2.6/ext/xml/xml.c:1121: undefined reference to `php_XML_SetUserData'
ext/xml/.libs/xml.o: In function `_xml_externalEntityRefHandler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1010: undefined reference to `XML_GetUserData'
ext/xml/.libs/xml.o: In function `xml_parser_dtor':
/usr/local/src/php-5.2.6/ext/xml/xml.c:321: undefined reference to `php_XML_ParserFree'
ext/xml/.libs/xml.o: In function `zif_xml_parse':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1375: undefined reference to `php_XML_Parse'
ext/xml/.libs/xml.o: In function `zif_xml_set_end_namespace_decl_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1346: undefined reference to `php_XML_SetEndNamespaceDeclHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_start_namespace_decl_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1327: undefined reference to `php_XML_SetStartNamespaceDeclHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_external_entity_ref_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1308: undefined reference to `php_XML_SetExternalEntityRefHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_notation_decl_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1290: undefined reference to `php_XML_SetNotationDeclHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_unparsed_entity_decl_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1272: undefined reference to `php_XML_SetUnparsedEntityDeclHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_default_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1253: undefined reference to `php_XML_SetDefaultHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_processing_instruction_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1235: undefined reference to `php_XML_SetProcessingInstructionHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_character_data_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1216: undefined reference to `php_XML_SetCharacterDataHandler'
ext/xml/.libs/xml.o: In function `zif_xml_set_element_handler':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1197: undefined reference to `php_XML_SetElementHandler'
ext/xml/.libs/xml.o: In function `zif_xml_error_string':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1449: undefined reference to `php_XML_ErrorString'
ext/xml/.libs/xml.o: In function `zif_xml_parse_into_struct':
/usr/local/src/php-5.2.6/ext/xml/xml.c:1410: undefined reference to `php_XML_SetDefaultHandler'
/usr/local/src/php-5.2.6/ext/xml/xml.c:1411: undefined reference to `php_XML_SetElementHandler'
/usr/local/src/php-5.2.6/ext/xml/xml.c:1412: undefined reference to `php_XML_SetCharacterDataHandler'
/usr/local/src/php-5.2.6/ext/xml/xml.c:1415: undefined reference to `php_XML_Parse'
collect2: ld returned 1 exit status
收到 SIGCHLD 信号;尚有 1 个子进程存在。
正在中止失败的子进程 0x0812c490 PID 29286
make: *** [sapi/cli/php] 错误 1
Removing child 0x0812c490 PID 29286 from chain.
请大家帮忙解决,很急啊!
|
undefined reference to `php_XML_GetCurrentByteIndex'
ext/xml/.libs/xml.o: In function `zif_xml_get_current_column_number':
怎么这么多未定义,代码里没包含库吗?
ext/xml/.libs/xml.o: In function `zif_xml_get_current_column_number':
怎么这么多未定义,代码里没包含库吗?
|
要实现一个程序开机自启动有很多方法啊:
添加到/etc/rc.d/rc.local就行啦。。。还有其他几种,就不说了。。。。因为不知道你说的是不是这个方面的东东
添加到/etc/rc.d/rc.local就行啦。。。还有其他几种,就不说了。。。。因为不知道你说的是不是这个方面的东东
|
支持