1
내 pintl을 사용하여 phar 확장을 설치하려고합니다.하지만 계속 실패합니다. 나는이 메시지를 얻을 beggining에서PHP Phar 설치
running: make
/bin/bash /tmp/pear/temp/pear-build-rootPgumyZ/phar-2.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/phar -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootPgumyZ/phar-2.0.0/include -I/tmp/pear/temp/pear-build-rootPgumyZ/phar-2.0.0/main -I/tmp/pear/temp/phar -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/phar/util.c -o util.lo
libtool: compile: cc -I. -I/tmp/pear/temp/phar -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootPgumyZ/phar-2.0.0/include -I/tmp/pear/temp/pear-build-rootPgumyZ/phar-2.0.0/main -I/tmp/pear/temp/phar -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/phar/util.c -fPIC -DPIC -o .libs/util.o
In file included from /usr/include/php5/main/fopen_wrappers.h:25:0,
from /usr/include/php5/main/php.h:402,
from /tmp/pear/temp/phar/phar_internal.h:27,
from /tmp/pear/temp/phar/util.c:23:
/tmp/pear/temp/phar/util.c: In function 'phar_mount_entry':
/usr/include/php5/main/php_globals.h:32:29: error: 'struct _php_core_globals' has no member named 'safe_mode'
# define PG(v) (core_globals.v)
^
/tmp/pear/temp/phar/util.c:205:6: note: in expansion of macro 'PG'
if (PG(safe_mode) && !is_phar && (!php_checkuid(entry.tmp, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
^
/tmp/pear/temp/phar/util.c:205:67: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
if (PG(safe_mode) && !is_phar && (!php_checkuid(entry.tmp, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
^
/tmp/pear/temp/phar/util.c:205:67: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/phar/util.c: In function 'phar_find_in_include_path':
/tmp/pear/temp/phar/util.c:274:8: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fname = zend_get_executed_filename(TSRMLS_C);
^
In file included from /usr/include/php5/main/fopen_wrappers.h:25:0,
from /usr/include/php5/main/php.h:402,
from /tmp/pear/temp/phar/phar_internal.h:27,
from /tmp/pear/temp/phar/util.c:23:
/tmp/pear/temp/phar/util.c: In function 'phar_open_archive_fp':
/usr/include/php5/main/php_globals.h:32:29: error: 'struct _php_core_globals' has no member named 'safe_mode'
# define PG(v) (core_globals.v)
^
/tmp/pear/temp/phar/util.c:854:6: note: in expansion of macro 'PG'
if (PG(safe_mode) && (!php_checkuid(phar->fname, NULL, CHECKUID_ALLOW_ONLY_FILE))) {
^
/tmp/pear/temp/phar/util.c:854:57: error: 'CHECKUID_ALLOW_ONLY_FILE' undeclared (first use in this function)
if (PG(safe_mode) && (!php_checkuid(phar->fname, NULL, CHECKUID_ALLOW_ONLY_FILE))) {
^
/tmp/pear/temp/phar/util.c: In function 'phar_add_virtual_dirs':
/tmp/pear/temp/phar/util.c:2218:12: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
while ((s = zend_memrchr(filename, '/', filename_len))) {
^
make: *** [util.lo] Error 1
ERROR: `make' failed
: 나는 pecl install phar
을 실행하면
나는이 오류가
Did not download optional dependencies: pecl/bz2, pecl/hash, use --alldeps to download automatically
그래서 모두 종속성을 설치하려고했지만 그 또한 오류를 줄 :
/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/hash/hash.c -fPIC -DPIC -o .libs/hash.o
/tmp/pear/temp/hash/hash.c:785:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:792:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_file, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:799:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_hmac, 0, 0, 3)
^
/tmp/pear/temp/hash/hash.c:807:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_hmac_file, 0, 0, 3)
^
/tmp/pear/temp/hash/hash.c:815:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_init, 0, 0, 1)
^
/tmp/pear/temp/hash/hash.c:822:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO(arginfo_hash_update, 0)
^
/tmp/pear/temp/hash/hash.c:828:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_update_stream, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:835:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_update_file, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:842:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_final, 0, 0, 1)
^
/tmp/pear/temp/hash/hash.c:848:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO(arginfo_hash_algos, 0)
^
make: *** [hash.lo] Error 1
ERROR: `make' failed
: PECL/해시를 들어
(": // http://php.net/bzip2/ext/bz2 채널"에 찬성되지 않습니다) : 53,691,363,210
그리고 PECL에 대한/BZ2
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
ERROR: `phpize' failed
나는이의 phpize 오류를 검색했습니다 내가 PHP5-DEV가 설치되어 있어야합니다 것을 발견 (어느 쪽인지).
아무도 내가 이것을 알아낼 수있게 도와 줄 수 있습니까?
고맙습니다.
--alldeps 매개 변수를 사용해 보셨습니까? 그것은 dependencys를 독자적으로 다운로드 할 것입니다 ... 가끔은 또한 prev를 재설치하는 데 도움이됩니다. php5-dev와 같은 구성 요소 – ThatMSG
그래, 그랬어. --alldeps를 사용하면 두 종속성을 따로 설치하는 것과 똑같은 오류가 발생합니다. 또한 php5-dev를 삭제하고 다시 운이 없으면 시도해 보았습니다. :( –