Bug #78949 [Com]: PEAR cannot find installed Archive/Tar.php

From: Date: Fri, 13 Dec 2019 18:36:48 +0000
Subject: Bug #78949 [Com]: PEAR cannot find installed Archive/Tar.php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224286@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78949&edit=1

 ID:                 78949
 Comment by:         drtechno at mail dot com
 Reported by:        dries dot vints at gmail dot com
 Summary:            PEAR cannot find installed Archive/Tar.php
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   macOS Catalina
 PHP Version:        7.4.0
 Block user comment: N
 Private report:     N

 New Comment:

I just noticing you are using macOS Catalina.

there are package managers like apt-get for the mac ( like Brew) but it would depend on if the
author made it available in those BSD (macOs) channels.


Previous Comments:
------------------------------------------------------------------------
[2019-12-13 18:23:43] drtechno at mail dot com

There are three ways, but it depends on your distro.

for Ubuntu, and other Debain type distros:

sudo apt-get update
sudo apt-get install php7.0-apcu -y

then sudo service php7.0-fpm restart (nginx) or sudo service apache2 reload

Debain-version has a configuration script


But on non debain systems that use apt-get, use this (which is the method you tried):

sudo apt-get update
sudo apt-get install php-pear -y
sudo pecl install apcu

add the plugin extension

echo "extension = apcu.so" | sudo tee -a /etc/php/7.0/mods-available/apcu.ini

Then add the symbol links for whatever webserver/service

Nginx (web and the command line interface (CLI) examples):
sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/fpm/conf.d/30-apcu.ini
sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/cli/conf.d/30-apcu.ini

Apache example:
sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/apache2/conf.d/30-apcu.ini


then restart your web server:

sudo service php7.0-fpm restart (nginx) or sudo service apache2 reload (apache2)


The last way would be source code....

sudo apt-get update
sudo apt-get install php7.0-dev git build-essential -y
cd /tmp
git clone https://github.com/krakjoe/apcu
cd apcu
phpize
./configure
make
sudo make install

add the php extension:

echo "extension = apcu.so" | sudo tee -a /etc/php/7.0/mods-available/apcu.ini

Then add Symbol links:
for nginx:

sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/fpm/conf.d/30-apcu.ini
sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/cli/conf.d/30-apcu.ini

or for apache:

sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/apache2/conf.d/30-apcu.ini

 then restart web server:

sudo php7.0-fpm restart

or
sudo service apache2 reload

------------------------------------------------------------------------
[2019-12-13 18:01:55] drtechno at mail dot com

Well, it sounds like permission. execute under root alias. by executing:

sudo pecl install APCu

Most programs are deliberately restricted what they can access on a linux system, and in most cases,
like installation, it required root privileges. Only use sudo and never log as root.

------------------------------------------------------------------------
[2019-12-13 11:00:38] dries dot vints at gmail dot com

Hmm, sorry about that. There wasn't a "PEAR" option in the "Package
affected" list so I posted it under PECL which in hindsight maybe wasn't the best choice.

------------------------------------------------------------------------
[2019-12-13 10:12:26] cmb@php.net

This is certainly unrelated to PECL/archive.

------------------------------------------------------------------------
[2019-12-13 09:51:17] nikic@php.net

Don't think this has any relation to the PECL archive extension, so I doubt anyone from PEAR
will see this.

To check, /usr/local/Cellar/php/7.4.0/share/php/pear/Archive/Tar.php exists?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=78949


--
Edit this bug report at https://bugs.php.net/bug.php?id=78949&edit=1


Thread (1 message)

  • drtechno at mail dot com
  • Unknown Message
    • drtechno at mail dot com
« previous php.bugs (#224286) next »