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

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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.