installing apcu

General support questions
Post Reply
mindoman
Posts: 2
Joined: 2018/09/14 21:06:39

installing apcu

Post by mindoman » 2018/09/14 21:10:53

hello there,

I am new here :)

also new to linux (CentOS)...

Just built a server and a personal cloud (ownCloud)

Following some optimization steps and hit a snagg... :/

Please see bellow:
(any help?)


[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

User avatar
TrevorH
Forum Moderator
Posts: 23852
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: installing apcu

Post by TrevorH » 2018/09/14 21:38:15

Don't build it from source. Use packages. If you're using the distro php 5.4.16 then do this

yum install epel-release
yum install php-pecl-apcu.x86_64

If you're using a third party repo to get newer php then you should be able to find an apcu package from them instead.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

mindoman
Posts: 2
Joined: 2018/09/14 21:06:39

Re: installing apcu

Post by mindoman » 2018/09/15 09:29:10

Thank you!

This helped.

Actually realised a lot of setup guides are very generic and you need to do your own research depending on what distro is your environment.
It's educational though.

Post Reply