"건축 x86_64에 대한 정의되지 않은 기호는"10.8.4맥 OS X PHP 5.4.29 컴파일 오류가
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli
--with-config-file-path=/etc --with-libxml-dir=/usr --with-openssl=/usr
--with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr
--enable-calendar --with-curl=/usr --enable-dba --enable-exif --enable-ftp
--with-gd --enable-gd-native-ttf --with-icu-dir=/usr --with-iodbc=/usr
--with-ldap=/usr --with-ldap-sasl=/usr --with-libedit=/usr --enable-mbstring
--enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --without-pear
--with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock
--with-readline=/usr --enable-shmop --with-snmp=/usr --enable-soap
--enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--with-tidy --enable-wddx --with-xmlrpc --with-iconv-dir=/usr
--with-xsl=/usr --enable-zip --with-pcre-regex --with-pgsql=/usr
--with-pdo-pgsql=/usr --with-freetype-dir=/usr/X11 --with-png-dir=/usr/X11
다음 가을하고이 오류가 맥 OS X에 PHP 5.4.29을 컴파일하려고 :
Undefined symbols for architecture x86_64:
"_ap_get_server_version", referenced from:
_zif_apache_get_version in php_functions.o
_zm_info_apache in php_functions.o
"_ap_log_error", referenced from:
_php_handler in sapi_apache2.o
_php_apache_sapi_log_message in sapi_apache2.o
"_ap_log_rerror", referenced from:
_php_handler in sapi_apache2.o
_php_apache_sapi_log_message in sapi_apache2.o
"_unixd_config", referenced from:
_zm_info_apache in php_functions.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libs/libphp5.bundle] Error 1
누구나 전에 본 적이 있습니까? 어떤 아이디어로 그것을 고치는 법?
작성한 명령, 접두사 등을 표시 할 수 있습니까? –
"configure"옵션을 표시하기 위해 내 질문을 편집했습니다. – derekg
정의되지 않은 기호는 Apache 로깅 코어에 있습니다. 아파치를 이미 설치했는지는 모르지만 문제가 될 수 있다고 생각합니다. 링커에서 참조를 찾을 수 없으며 특정 헤더 나 라이브러리를 포함해야합니다. 아마도 그냥 같은 오류가 발생하는지 확인하기 위해 일반'configure && make '를 시도해보십시오. –