Phalcon command does not work

Hello,

I want to use the command phalcon (3.4) to generate from terminal (I have remi php72 with phalcon and it is works my project), but have some problems. The command phalcon throws me: ERROR: Phalcon extension isn't installed, follow these instructions to install it: https://docs.phalconphp.com/en/latest/installation, it is ok, I follow the instructions for fedora and the result is:

The repository is setup! You can now install packages.

sudo yum install php70u-phalcon

 Última comprobación de caducidad de metadatos hecha hace 0:00:47, el mar 11 ago 2020 11:38:39.
 No match for argument: php70u-phalcon
 Error: No result could be found: php70u-phalcon

So, I tried to put the file 50-phalcon.ini in the folder /etc/php.d and the result is:

PHP Warning:  PHP Startup: Unable to load dynamic library 'phalcon' (tried: /usr/lib64/php/modules/phalcon (/usr/lib64/php/modules/phalcon: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/phalcon.so (/usr/lib64/php/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce)) in Unknown on line 0
ERROR: Phalcon extension isn't installed, follow these instructions to install it: https://docs.phalconphp.com/en/latest/installation

And the phalcon.so library it is in: /usr/lib64/php/modules/phalcon.so

ll  /usr/lib64/php/modules/phalcon.so
-rwxr-xr-x 1 root root 6598072 ago  9 20:54 /usr/lib64/php/modules/phalcon.so

Other information usefull could be:

php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'phalcon' (tried: /usr/lib64/php/modules/phalcon (/usr/lib64/php/modules/phalcon: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/phalcon.so (/usr/lib64/php/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce)) in Unknown on line 0
PHP 7.4.9 (cli) (built: Aug  4 2020 08:28:13) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
gcc -v
Usando especificaciones internas.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Objetivo: x86_64-redhat-linux
Configurado con: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Modelo de hilos: posix
Algoritmos de compresión LTO admitidos: zlib zstd
gcc versión 10.2.1 20200723 (Red Hat 10.2.1-1) (GCC) 
ll /etc/php.d
total 52
-rw-r--r-- 1 root root 44 ago  4 14:05 20-bz2.ini
-rw-r--r-- 1 root root 54 ago  4 14:05 20-calendar.ini
-rw-r--r-- 1 root root 48 ago  4 14:05 20-ctype.ini
-rw-r--r-- 1 root root 46 ago  4 14:05 20-curl.ini
-rw-r--r-- 1 root root 46 ago  4 14:05 20-exif.ini
-rw-r--r-- 1 root root 54 ago  4 14:05 20-fileinfo.ini
-rw-r--r-- 1 root root 44 ago  4 14:05 20-ftp.ini
-rw-r--r-- 1 root root 52 ago  4 14:05 20-gettext.ini
-rw-r--r-- 1 root root 48 ago  4 14:05 20-iconv.ini
-rw-r--r-- 1 root root 46 ago  4 14:05 20-json.ini
-rw-r--r-- 1 root root 46 ago  4 14:05 20-phar.ini
-rw-r--r-- 1 root root 52 ago  4 14:05 20-sockets.ini
-rw-r--r-- 1 root root 56 ago  4 14:05 20-tokenizer.ini
lrwxrwxrwx 1 root root 40 ago 11 12:03 50-phalcon.ini -> /etc/opt/remi/php72/php.d/50-phalcon.ini

phpinfo (only phalcon) in my remi php72 project

phalcon
Web framework delivered as a C-extension for PHP
phalcon enabled
Author  Phalcon Team and contributors
Version 3.4.5
Build Date  Oct 31 2019 00:00:00
Powered by Zephir   Version 0.10.16

I know the php no remi is 7.4 and remi is 7.2. The command phalcon is from php no remi php7.4, maybe is there a problem with php 7.4?

Thanks for read this.

/usr/lib64/php/modules/phalcon.so (/usr/lib64/php/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce)) in Unknown on line 0

This part is probably the most useful message, based on this PHP does find the .so file and tries to load it, but fails with that error. Pretty sure you have a version mismatch somewhere, but I'm not familiar with Redhat/CentOS =/



2.4k

I tried it hard but i didn't get nothing...

/usr/lib64/php/modules/phalcon.so (/usr/lib64/php/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce)) in Unknown on line 0

This part is probably the most useful message, based on this PHP does find the .so file and tries to load it, but fails with that error. Pretty sure you have a version mismatch somewhere, but I'm not familiar with Redhat/CentOS =/