John Davidson

php - Phalcon failed install on mac m1

0 comments
Message:


I followed those step to install phalcon on my mac m1, my php version is 7.4.20


step1: brew tap tigerstrikemedia/homebrew-phalconphp


step2: brew install php72-phalcon


step3: add this line to php.ini


extension=/opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so

step4: php -v, shows the error


PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so' (tried: /opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so (dlopen(/opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so, 9): Symbol not found: __zval_ptr_dtor
Referenced from: /opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so
Expected in: flat namespace
in /opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so), /opt/homebrew/lib/php/pecl/20190902//opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so.so (dlopen(/opt/homebrew/lib/php/pecl/20190902//opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so.so, 9): image not found)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so' (tried: /opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so (dlopen(/opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so, 9): Symbol not found: __zval_ptr_dtor
Referenced from: /opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so
Expected in: flat namespace
in /opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so), /opt/homebrew/lib/php/pecl/20190902//opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so.so (dlopen(/opt/homebrew/lib/php/pecl/20190902//opt/homebrew/Cellar/php72-phalcon/3.4.2/phalcon.so.so, 9): image not found)) in Unknown on line 0
PHP 7.4.20 (cli) (built: Jun 3 2021 19:10:14) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans
with Zend OPcache v7.4.20, Copyright (c), by Zend Technologies

How can I solve this problem? Thanks!!



My Answer:
It looks like there may be compatibility issues with the version of Phalcon you are trying to install and your PHP version.

One possible solution is to try installing a different version of Phalcon that is compatible with PHP 7.4. You can check the official Phalcon documentation or GitHub repository for information on which versions are compatible with PHP 7.4.

Alternatively, you can try compiling Phalcon from the source code instead of using Homebrew. This way, you can ensure that the version you are installing is compatible with your PHP version.

You can also try reaching out to the Phalcon community or support for further assistance on resolving this issue. They may have more insights or solutions to help you successfully install Phalcon on your Mac M1 with PHP 7.4.

Rate this post

4 of 5 based on 8501 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us