Can't install geoip (php module) using Pecl

karlos.vanger

Member
Jun 4, 2013
18
0
1
cPanel Access Level
Root Administrator
Hello,

I'm trying to install php geoip using pecl and I'm getting following error:


Warning: require_once(Archive/Tar.php): failed to open stream: No such file or directory in PEAR/PackageFile.php on line 305

Warning: require_once(Archive/Tar.php): failed to open stream: No such file or directory in /usr/local/lib/php/PEAR/PackageFile.php on line 305

Fatal error: require_once(): Failed opening required 'Archive/Tar.php' (include_path='/usr/local/lib/php') in /usr/local/lib/php/PEAR/PackageFile.php on line 305

Is there any solution for this? Is that possible to reinstall Pecl?

Thanks,
Karlos
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Please try running the following command:

Code:
mv /usr/local/lib/php/PEAR /usr/local/lib/php/PEAR-backup
Then, rebuild Apache/PHP via EasyApache to generate a new copy of this directory.

Thank you.