Answer the question
In order to leave comments, you need to log in
How to install memcached on PHP 7.3 (rh-php73) on Centos 7?
Good afternoon!
I have a home server with a virtual machine running Linux Centos 7.
There are already a number of projects with php 7.1. Basically nginx + php-fpm.
Need.
Install 7.3 for a specific project, and a number of modules, for example memcached.
I googled. Installed the centos-sclo-rh repository, and from there:
Установленные пакеты
rh-php73.x86_64
rh-php73-build.x86_64
rh-php73-php.x86_64
rh-php73-php-cli.x86_64
rh-php73-php-common.x86_64
rh-php73-php-devel.x86_64
rh-php73-php-fpm.x86_64
rh-php73-php-gd.x86_64
rh-php73-php-gmp.x86_64
rh-php73-php-json.x86_64
rh-php73-php-mbstring.x86_64
rh-php73-php-mysqlnd.x86_64
rh-php73-php-opcache.x86_64
rh-php73-php-pdo.x86_64
rh-php73-php-pear.noarch
rh-php73-php-pecl-apcu.x86_64
rh-php73-php-process.x86_64
rh-php73-php-soap.x86_64
rh-php73-php-xml.x86_64
rh-php73-php-zip.x86_64
rh-php73-runtime.x86_64
rh-php73-scldevel.x86_64
Доступные пакеты
rh-php73-php-bcmath.x86_64
rh-php73-php-dba.x86_64
rh-php73-php-dbg.x86_64
rh-php73-php-embedded.x86_64
rh-php73-php-enchant.x86_64
rh-php73-php-intl.x86_64
rh-php73-php-ldap.x86_64
rh-php73-php-odbc.x86_64
rh-php73-php-pecl-apcu-devel.x86_64
rh-php73-php-pecl-xdebug.x86_64
rh-php73-php-pgsql.x86_64
rh-php73-php-pspell.x86_64
rh-php73-php-recode.x86_64
rh-php73-php-snmp.x86_64
rh-php73-php-xmlrpc.x86_64
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/memcache.so' (tried: /usr/lib64/php/modules/memcache.so (/usr/lib64/php/modules/memcache.so: undefined symbol: _zval_ptr_dtor), /opt/rh/rh-php73/root/usr/lib64/php/modules//usr/lib64/php/modules/memcache.so.so (/opt/rh/rh-php73/root/usr/lib64/php/modules//usr/lib64/php/modules/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.3.11 (cli) (built: Dec 10 2019 16:14:50) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.11, Copyright (c) 1999-2018, by Zend Technologies
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /opt/rh/rh-php73/root/usr/bin/php-config
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 /opt/rh/rh-php73/root/usr/bin/php-config-cc... no
checking for /opt/rh/rh-php73/root/usr/bin/php-config-gcc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... Invalid configuration `/opt/rh/rh-php73/root/usr/bin/php-config': machine `/opt/rh/rh-php73/root/usr/bin/php' not recognized
configure: error: /bin/sh ./config.sub /opt/rh/rh-php73/root/usr/bin/php-config failed
Answer the question
In order to leave comments, you need to log in
Yes, you need Remi - https://rpms.remirepo.net/
It has the ability to both update the system php to new versions, and install the second php in parallel with the system one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question