php - How do I install Pecl Phar? (getting errors) -


on centos 6, php 5.5

i trying install phar package pecl. during installation "make failed" error:

creating libtool appending configuration tag "cxx" libtool configure: creating ./config.status config.status: creating config.h running: make /bin/sh /root/tmp/pear/pear-build-rootzdozvf/phar-2.0.0/libtool --mode=compile cc  -i. -i/root/tmp/pear/phar -dphp_atom_inc -i/root/tmp/pear/pear-build-rootzdozvf/phar-2.0.0/include -i/root/tmp/pear/pear-build-rootzdozvf/phar-2.0.0/main -i/root/tmp/pear/phar -i/usr/local/include/php -i/usr/local/include/php/main -i/usr/local/include/php/tsrm -i/usr/local/include/php/zend -i/usr/local/include/php/ext -i/usr/local/include/php/ext/date/lib  -dhave_config_h  -g -o2   -c /root/tmp/pear/phar/util.c -o util.lo mkdir .libs  cc -i. -i/root/tmp/pear/phar -dphp_atom_inc -i/root/tmp/pear/pear-build-rootzdozvf/phar-2.0.0/include -i/root/tmp/pear/pear-build-rootzdozvf/phar-2.0.0/main -i/root/tmp/pear/phar -i/usr/local/include/php -i/usr/local/include/php/main -i/usr/local/include/php/tsrm -i/usr/local/include/php/zend -i/usr/local/include/php/ext -i/usr/local/include/php/ext/date/lib -dhave_config_h -g -o2 -c /root/tmp/pear/phar/util.c  -fpic -dpic -o .libs/util.o /root/tmp/pear/phar/util.c: in function ‘phar_mount_entry’: /root/tmp/pear/phar/util.c:205: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’ /root/tmp/pear/phar/util.c:205: error: ‘checkuid_check_file_and_dir’ undeclared (first use in function) /root/tmp/pear/phar/util.c:205: error: (each undeclared identifier reported once /root/tmp/pear/phar/util.c:205: error: each function appears in.) /root/tmp/pear/phar/util.c: in function ‘phar_find_in_include_path’: /root/tmp/pear/phar/util.c:274: warning: assignment discards qualifiers pointer target type /root/tmp/pear/phar/util.c: in function ‘phar_open_archive_fp’: /root/tmp/pear/phar/util.c:854: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’ /root/tmp/pear/phar/util.c:854: error: ‘checkuid_allow_only_file’ undeclared (first use in function) /root/tmp/pear/phar/util.c: in function ‘phar_add_virtual_dirs’: /root/tmp/pear/phar/util.c:2218: warning: assignment discards qualifiers pointer target type make: *** [util.lo] error 1 error: `make' failed 

i not sure why, went pecl , saw phar package has dependencies, tried installing first dependency listed, bz2, got error:

make sure run '/usr/local/bin/phpize' in top level source directory of module 

and found useful post, showed me how manually download package, put in right place. after running ./configure message telling me re-intall bz2.

and found out can run pecl install --alldeps phar install dependencies. did that, , following error:

 cc -i. -i/root/tmp/pear/hash -dphp_atom_inc -i/root/tmp/pear/pear-build-rootm2ahqa/hash-1.5/include -i/root/tmp/pear/pear-build-rootm2ahqa/hash-1.5/main -i/root/tmp/pear/hash -i/usr/local/include/php -i/usr/local/include/php/main -i/usr/local/include/php/tsrm -i/usr/local/include/php/zend -i/usr/local/include/php/ext -i/usr/local/include/php/ext/date/lib -dhave_config_h -g -o2 -c /root/tmp/pear/hash/hash.c  -fpic -dpic -o .libs/hash.o /root/tmp/pear/hash/hash.c:785: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:792: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:799: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:807: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:815: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:822: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:828: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:835: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:842: error: duplicate ‘static’ /root/tmp/pear/hash/hash.c:848: error: duplicate ‘static’ make: *** [hash.lo] error 1 error: `make' failed 

i appreciate getting phar installed. thanks!

answering own question. turns out, phar not compiled php, , work had recompile php phar package enabled.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -