How to install/active GraphicsMagick, Gifsicle, md5sum and APC Cache

YanoLoL

Member
Oct 15, 2016
10
0
1
Brazil
cPanel Access Level
Root Administrator
When I try to install GraphicsMagick the "Module Installers" appears this error

Code:
Failed to download pecl/gmagick within preferred state "stable", latest release is version 2.0.4RC1, stability "beta", use "channel://pecl.php.net/gmagick-2.0.4RC1" to install
install failed
 

YanoLoL

Member
Oct 15, 2016
10
0
1
Brazil
cPanel Access Level
Root Administrator
Error in APC

Code:
downloading APC-3.1.13.tgz ...
Starting to download APC-3.1.13.tgz (171,591 bytes)
.....................................done: 171,591 bytes
55 source files, building
running: phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
Enable internal debugging in APC [no] : Enable per request file info about files used from the APC cache [no] : Enable spin locks (EXPERIMENTAL) [no] : Enable memory protection (EXPERIMENTAL) [no] : Enable pthread mutexes (default) [no] : Enable pthread read/write locks (EXPERIMENTAL) [yes] : building in /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootKyn1ny/APC-3.1.13
running: /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config --enable-apc-debug=no --enable-apc-filehits=no --enable-apc-spinlocks=no --enable-apc-memprotect=no --enable-apc-pthreadmutex=no --enable-apc-pthreadrwlocks=yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php70/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php70/root/usr/include/php -I/opt/cpanel/ea-php70/root/usr/include/php/main -I/opt/cpanel/ea-php70/root/usr/include/php/TSRM -I/opt/cpanel/ea-php70/root/usr/include/php/Zend -I/opt/cpanel/ea-php70/root/usr/include/php/ext -I/opt/cpanel/ea-php70/root/usr/include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php70/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php70/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable APC support... yes, shared
checking whether we should enable cache request file info... no
checking whether we should use mmap... yes
checking whether we should use semaphore locking instead of fcntl... no
checking whether we should use pthread mutex locking... no
checking whether we should use pthread read/write locking... yes
pthread rwlocks are supported!
checking whether the target compiler supports builtin atomics... yes
checking whether we should use spin locks... no
checking whether we should enable memory protection... no
checking for zend_set_lookup_function_hook... no
checking for sigaction... yes
checking for union semun... no
checking whether we should enable valgrind support... checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
yes
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for shm_open in -lrt... yes
checking whether to include code coverage symbols... no
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootKyn1ny/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC -DPHP_ATOM_INC -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootKyn1ny/APC-3.1.13/include -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootKyn1ny/APC-3.1.13/main -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC -I/opt/cpanel/ea-php70/root/usr/include/php -I/opt/cpanel/ea-php70/root/usr/include/php/main -I/opt/cpanel/ea-php70/root/usr/include/php/TSRM -I/opt/cpanel/ea-php70/root/usr/include/php/Zend -I/opt/cpanel/ea-php70/root/usr/include/php/ext -I/opt/cpanel/ea-php70/root/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c -o apc.lo
libtool: compile:  cc -D_GNU_SOURCE -I. -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC -DPHP_ATOM_INC -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootKyn1ny/APC-3.1.13/include -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootKyn1ny/APC-3.1.13/main -I/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC -I/opt/cpanel/ea-php70/root/usr/include/php -I/opt/cpanel/ea-php70/root/usr/include/php/main -I/opt/cpanel/ea-php70/root/usr/include/php/TSRM -I/opt/cpanel/ea-php70/root/usr/include/php/Zend -I/opt/cpanel/ea-php70/root/usr/include/php/ext -I/opt/cpanel/ea-php70/root/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c  -fPIC -DPIC -o .libs/apc.o
In file included from /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_main.h:38,
                 from /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_compile.h:43,
                 from /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_cache.h:40,
                 from /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:36:
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_serializer.h: In function 'apc_register_serializer':
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_serializer.h:64: warning: passing argument 1 of 'zend_get_constant' from incompatible pointer type
/opt/cpanel/ea-php70/root/usr/include/php/Zend/zend_constants.h:68: note: expected 'struct zend_string *' but argument is of type 'char *'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_serializer.h:64: error: too many arguments to function 'zend_get_constant'
In file included from /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:36:
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_cache.h: At top level:
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc_cache.h:136: error: expected specifier-qualifier-list before 'zend_uint'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:47:43: error: ext/standard/php_smart_str.h: No such file or directory
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c: In function 'apc_search_paths':
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:345: warning: passing argument 2 of 'zend_hash_exists' from incompatible pointer type
/opt/cpanel/ea-php70/root/usr/include/php/Zend/zend_hash.h:159: note: expected 'struct zend_string *' but argument is of type 'char *'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:345: error: too many arguments to function 'zend_hash_exists'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:352: warning: passing argument 2 of 'php_stream_locate_url_wrapper' from incompatible pointer type
/opt/cpanel/ea-php70/root/usr/include/php/main/php_streams.h:565: note: expected 'const char **' but argument is of type 'char **'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:416: warning: assignment discards qualifiers from pointer target type
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c: In function 'apc_regex_compile_array':
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:482: error: 'smart_str' undeclared (first use in this function)
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:482: error: (Each undeclared identifier is reported only once
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:482: error: for each function it appears in.)
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:482: error: expected ';' before 'pmatch'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:483: error: expected ';' before 'nmatch'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:491: error: 'pmatch' undeclared (first use in this function)
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:492: error: 'nmatch' undeclared (first use in this function)
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c: In function 'apc_flip_hash':
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:702: warning: passing argument 2 of 'zend_hash_get_current_data_ex' from incompatible pointer type
/opt/cpanel/ea-php70/root/usr/include/php/Zend/zend_hash.h:171: note: expected 'HashPosition *' but argument is of type 'void **'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:702: error: too many arguments to function 'zend_hash_get_current_data_ex'
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:704:108: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:704: error: 'zend_hash_update' undeclared (first use in this function)
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:706:89: error: macro "zend_hash_index_update" passed 5 arguments, but takes just 3
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:706: error: 'zend_hash_index_update' undeclared (first use in this function)
/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/APC/apc.c:711: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type
/opt/cpanel/ea-php70/root/usr/include/php/Zend/zend_variables.h:112: note: expected 'struct zval *' but argument is of type 'struct zval **'
make: *** [apc.lo] Error 1
ERROR: `make' failed
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
So is it possible to use WHM / cPanel to install GraphicsMagick, Gifsicle, md5sum and APC Cache or do we have to get someone to SSH in to do so?
Hello,

You will need to use the command line in some cases, such as installing beta versions of modules or installing package dependencies that certain modules require. Here's an example:

Code:
/opt/cpanel/ea-php70/root/usr/bin/pecl install channel://pecl.php.net/gmagick-2.0.4RC1
Note this would require the "GraphicsMagick" package to be installed through your system package manager (YUM).

APC is unsupported in PHP versions 5.5 and higher.

Thank you.
 

YanoLoL

Member
Oct 15, 2016
10
0
1
Brazil
cPanel Access Level
Root Administrator
Hello,

You will need to use the command line in some cases, such as installing beta versions of modules or installing package dependencies that certain modules require. Here's an example:

Code:
/opt/cpanel/ea-php70/root/usr/bin/pecl install channel://pecl.php.net/gmagick-2.0.4RC1
Note this would require the "GraphicsMagick" package to be installed through your system package manager (YUM).

APC is unsupported in PHP versions 5.5 and higher.

Thank you.

Code:
10 source files, building
running: phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
Please provide the prefix of GraphicsMagick installation [autodetect] :
building in /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootZCbDyH/gmagick-2.0.4RC1
running: /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/gmagick/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config --with-gmagick
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php70/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php70/root/usr/include/php -I/opt/cpanel/ea-php70/root/usr/include/php/main -I/opt/cpanel/ea-php70/root/usr/include/php/TSRM -I/opt/cpanel/ea-php70/root/usr/include/php/Zend -I/opt/cpanel/ea-php70/root/usr/include/php/ext -I/opt/cpanel/ea-php70/root/usr/include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php70/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php70/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the gmagick extension... yes, shared
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
ERROR: `/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/gmagick/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config --with-gmagick' failed
[[email protected] ~]#
Error when i install.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
Check to ensure the GraphicsMagick and GraphicsMagick-devel packages are installed via YUM. You'd do so via commands such as:

Code:
yum install GraphicsMagick
yum install GraphicsMagick-devel
Thank you.