error when you upgrade to v4

Hey. I have an error in step:

zephir fullclean

error:

PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/lib64/php/modules/phalcon.so (/usr/lib64/php/modules/phalcon.so: undefined symbol: php_json_decode_ex), /usr/lib64/php/modules/phalcon.so.so (/usr/lib64/php/modules/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP 7.3.12

What could be the reason?



10.0k
edited Dec '19

Looks like you're missing the php json extension. Please check the package requirements. https://docs.phalcon.io/4.0/en/installation#software



3.6k

Looks like you're missing the php json extension. Please check the package requirements. https://docs.phalcon.io/4.0/en/installation#software

php -m says that there is a json



3.6k

Install the package json-devel for CentOS 7, error has not changed



10.0k

Sorry, only seeing now you have this error before compiling. This is from an already installed version. Try removing phalcon.so from you php.ini. Do you need to compile it yourself? Why not using a package? https://docs.phalcon.io/4.0/en/installation#rpm-based-distributions-centos-fedora-etc



3.6k
edited Dec '19

Sorry, only seeing now you have this error before compiling. This is from an already installed version. Try removing phalcon.so from you php.ini. Do you need to compile it yourself? Why not using a package? https://docs.phalcon.io/4.0/en/installation#rpm-based-distributions-centos-fedora-etc

I'm sorry, but what am I doing wrong?

  1. I installed a clean OS
  2. Install PSR and extension=psr.so
  3. install php73-php-phalcon4 of Remi
  4. in php.ini (extension=phalcon.so)

in php -m no phalcon

please tell me what I missed?



3.6k

Agreed:

yum install php-phalcon4