Install Phalcon on Macbook Apple Silicon M1 #15483
Unanswered
antoniolovotrico
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I have it working just fine on an M1 Mac Mini. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Everybody and thx in advance for your help.
It's more than 1 week that i'm trying to install Phalcon On Macbook Apple Silicon M1 but i cannot manage to do it, and i cannot find a correct tutorial or step by step explanation.
The things i've done are:
1 : brew tap phalcon/extension https://github.com/phalcon/homebrew-tap
2 : brew install phalcon
3 : after that i copy "phalcon.so" and "psr.so" from respectively "/opt/homebrew/Cellar/[email protected]/4.1.0" and "/opt/homebrew/Cellar/psr@74/1.0.0" and paste them to "/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902".
4 : finally i wrote at the end of my php.ini (located in "/Applications/XAMPP/xamppfiles/etc") the 2 extension(extension=psr.so
extension=phalcon.so) and restart xampp apache server.
Unfortunally when i check on php info() psr and phalcon don't show up.
PS: i think it is a problem of architecture cause i follow the same steps with my old macbook air with intel chip and it works(of course in this case phalcon.so and psr.so path come frome usr/local/cellar and not from opt/homebrew/cellar like in apple m1 chip).
To help you to help me(lol) i copy also what xampp php_error_log say:
[11-May-2021 16:22:18 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'psr.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so, 9): no suitable image found. Did find:
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so: mach-o, but wrong architecture
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so: mach-o, but wrong architecture), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so.so, 9): image not found)) in Unknown on line 0
[11-May-2021 16:22:18 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so, 9): no suitable image found. Did find:
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: mach-o, but wrong architecture
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: mach-o, but wrong architecture), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so, 9): image not found)) in Unknown on line 0
[11-May-2021 16:22:23 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'psr.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so, 9): no suitable image found. Did find:
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so: mach-o, but wrong architecture
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so: mach-o, but wrong architecture), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so.so, 9): image not found)) in Unknown on line 0
[11-May-2021 16:22:23 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so, 9): no suitable image found. Did find:
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: mach-o, but wrong architecture
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: mach-o, but wrong architecture), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so, 9): image not found)) in Unknown on line 0
[11-May-2021 16:22:23 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'psr.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so, 9): no suitable image found. Did find:
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so: mach-o, but wrong architecture
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so: mach-o, but wrong architecture), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/psr.so.so, 9): image not found)) in Unknown on line 0
[11-May-2021 16:22:23 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so, 9): no suitable image found. Did find:
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: mach-o, but wrong architecture
/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: mach-o, but wrong architecture), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so, 9): image not found)) in Unknown on line 0.
Please Guys Help me.
Thank you so much
Beta Was this translation helpful? Give feedback.
All reactions