Skip to main content

PHP Pecl "geoip" with PHP 7

Comments

4 comments

  • cPanelMichael
    Hello, You will need to install the beta version of this PECL module if you want support for PHP 7: PECL :: geoip Changelog 1.1.1 * Add IPv6 support (geoip_country_code_by_*_v6) * PHP7 support (thanks to Adam and Dan Ackroyd)
    Here's the command you can use:
    /opt/cpanel/ea-php70/root/usr/bin/pecl install http://pecl.php.net/get/geoip-1.1.1.tgz
    Thank you.
    0
  • Nirjonadda
    "PHP Pecl" Installer does not support install the beta version from WHM ?
    0
  • cPanelMichael
    That's correct. You will need to install the module via the command line if it's a beta version. Thank you.
    0
  • imorandin
    Hi, When I try to install geoip I get this error:
    # /opt/cpanel/ea-php70/root/usr/bin/pecl install geoip-1.1.1 downloading geoip-1.1.1.tgz ... Starting to download geoip-1.1.1.tgz (13,004 bytes) .....done: 13,004 bytes 5 source files, building running: phpize Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 building in /root/tmp/pear/pear-build-root6y8Tx7/geoip-1.1.1 running: /root/tmp/pear/geoip/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config 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 whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 for geoip support... yes, shared checking for geoip files in default path... not found configure: error: Please reinstall the geoip distribution ERROR: `/root/tmp/pear/geoip/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config' failed
    Same happens with PHP 7.X Thanks, Ignacio
    0

Please sign in to leave a comment.