Unable to install php requirements for Drupal8

I am using php7. I need APC:


jardell:~ # pecl install apc
downloading APC-3.1.13.tar ...
Starting to download APC-3.1.13.tar (970,752 bytes)
.................................................................................................................................................................................................done: 970,752 bytes

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

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

Fatal error: require_once(): Failed opening required 'Archive/Tar.php' (include_path='/usr/share/php7/PEAR:/usr/share/php7/PEAR:/usr/share/php7/PEAR') in /usr/share/php7/PEAR/PEAR/PackageFile.php on line 304

I am doing this as root.
How do I fix this?

Thanks,
Jim

Maybe this package is what you need?

https://software.opensuse.org/package/php7-pear

TSU

pear says to use pecl

I don’t see any recent PHP PECL builds in the OSS, If absolutely required, those may need to be downloaded from third party sources.

You should describe exactly how you are building your Drupal, there seems to be many possible variations today, including…

  • Choice of webserver
  • Choice of Drupal, can be “Core” or any of a variety of specific purpose (I assume the main diff are the pre-installed modules)
  • Although not likely critical, could be helpful to know which if any Desktop is installed on your system.

There are various guides to installing and setting up Drupal ranging from included files to documentation which can be found on the Internet. If you are following something that can be found on the Internet, you should provide a link to that reference.

TSU

Took a look at the official Drupal Install Requirements documentation on the Drupal website,
States that even for the latest stable release, PHP 5.5 or later is required.

Any reason why you are trying to install Drupal on 5.7?

TSU