How to install GeoIP Pecl for Piwik? Help Please!


#1

I have installed ee site create example.com --wpredis on Ubuntu Server 14.04. But I can’t install GeoIP Pecl for Piwik.

Regards


#2

You will need following things Installed : PEAR/PECL (which includes the pecl executable) The GeoIP C library with development files Build tools (including GCC, make, etc.) php development files

then you will need to use ssh to install GEOIP pecl: http://piwik.org/faq/how-to/faq_164/


#3

See what’s happened:

youtube video link

I think it depends on php versions. We use 5.6 in this case and we have only one php directory in /etc called “php”.

Command bellow creates another dir called “php5” in /etc.

sudo apt-get install php5-geoip php5-dev libgeoip-dev

This is the info php:

I don’t know how to compile it to working correctly :confounded:

I used GeoIP PECL before but not on EE


#4
Build process completed successfully
Installing '/usr/lib/php5/20121212+lfs/geoip.so'

Warning: fopen(${prefix}/lib/php/pear/.depdb): failed to open stream: No such file or directory in DependencyDB.php on line 549
PHP Warning:  fopen(${prefix}/lib/php/pear/.depdb): failed to open stream: No such file or directory in /usr/share/php/PEAR/DependencyDB.php on line 549
PHP Fatal error:  Cannot use object of type PEAR_Error as array in /usr/share/php/PEAR/DependencyDB.php on line 385

#5

I think you should search for the location of /usr/share/php/PEAR/DependencyDB.php

and check if there is a file or not.


#7