sharingsunshine
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.
This is 1 of 2 errors:
1.
2.
Please help me with how to finish installing memcached.
Thanks,
yum install memcached php-pecl-memcache
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
2.
Error: Package: php-pecl-memcache-3.0.8-4.amzn2.x86_64 (amzn2-core)
Requires: php(zend-abi) = 20100525-64
Please help me with how to finish installing memcached.
Thanks,
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]#
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
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.
ASKER
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.
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.
Open in new window