Apcu not installing


#1

Steps to reproduce

[root@localhost ~]# pecl install apcu
downloading apcu-5.1.12.tgz …
Starting to download apcu-5.1.12.tgz (105,890 bytes)
…done: 105,890 bytes
39 source files, building
running: phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Enable internal debugging in APCu [no] : y
building in /var/tmp/pear-build-rootPjEhxK/apcu-5.1.12
running: /var/tmp/apcu/configure --with-php-config=/usr/bin/php-config --enable-apcu-debug=y
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for a sed that does not truncate output… /usr/bin/sed
checking for cc… no
checking for gcc… no
configure: error: in /var/tmp/pear-build-rootPjEhxK/apcu-5.1.12': configure: error: no acceptable C compiler found in $PATH Seeconfig.log’ for more details
ERROR: `/var/tmp/apcu/configure --with-php-config=/usr/bin/php-config --enable-apcu-debug=y’ failed

Expected behaviour

no errors

Actual behaviour

errors above

Server configuration

CentOS 7

Web server: apache

Database: mariadb

PHP version: 7.00

ownCloud version:10. (see ownCloud admin page)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:10.0.9

Signing status (ownCloud 9.0 and above):10.0.9.5

Sorry if this looks like a noob problem, I am a noob in Centos.


#2

Non idea if there is any need in compiling it yourself.

Try to install is from the package management system.

Maybe helps: https://mangolassi.it/topic/8436/adding-php-pecl-apcu-to-centos-7-for-owncloud-8-x-and-newer

Furthermore: please seek out to the Centos community to get help installing php apcu.

All the best!


#3

Hank you!

Actually a lot of info on how to set up Owncloud on Centos needed to be researched separately as the instructions are way too generic o work first time but they give a good indication what to look for.

Solution:

https://www.centos.org/forums/viewtopic.php?f=47&t=68249&p=286687#p286687