Link to home
Start Free TrialLog in
Avatar of sharingsunshine
sharingsunshineFlag for United States of America

asked on

Need Help With Memcached Installation Errors

I am encountering an error when I try to install memcached on a PHP 7 - Linux AWS system.  This is the command I am using that generates the error.
yum install memcached php-pecl-memcache

Open in new window


This is 1 of 2 errors:
1.
Finished Dependency Resolution
Error: Package: php-pecl-memcache-3.0.8-4.amzn2.x86_64 (amzn2-core)
           Requires: php(api) = 20100412-64

Open in new window


2.  
Error: Package: php-pecl-memcache-3.0.8-4.amzn2.x86_64 (amzn2-core)
           Requires: php(zend-abi) = 20100525-64

Open in new window


Please help me with how to finish installing memcached.

Thanks,
Avatar of David Favor
David Favor
Flag of United States of America image

What is output of...

php --version

Open in new window

Avatar of sharingsunshine

ASKER

[root@ip-172-31-8-214 httpd]# php --version
PHP 7.2.11 (cli) (built: Oct 24 2018 17:51:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
[root@ip-172-31-8-214 httpd]#
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
do
yum search php|grep memcache

check the package is available and install the same.

if you still have dependencies error do the same command for dependencies and install those.
Generally what Prabhin suggested is correct + in your case, you can't really do this... as easily as normal...

Because the memcached package you attempted to install above uses a PHP-5.4 API (20100412) version.

Your first step will be to audit all your repositories + remove those with outdated code.

The you should be able to install memcached as normal.
Thanks for pointing out this was an old API version.  I'll start over.
Likely best to get a list of your current repositories.

Then add latest LAMP stack repositories + remove old LAMP Stack repositories.

Once you get your repository list correct, you should be able to use default targets, like installing php-memcached + all will be well.