The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't install geoip (php module) using Pecl

Discussion in 'General Discussion' started by karlos.vanger, Sep 22, 2013.

  1. karlos.vanger

    karlos.vanger Member

    Joined:
    Jun 4, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    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
     
  2. Aaron.Edwards

    Aaron.Edwards Active Member

    Joined:
    Sep 21, 2013
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
  3. karlos.vanger

    karlos.vanger Member

    Joined:
    Jun 4, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,


    It is 11.38.2 build (7).

    Thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. karlos.vanger

    karlos.vanger Member

    Joined:
    Jun 4, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you.
     
Loading...

Share This Page