我一直试图在我的xamppPHP7.3安装程序(Macbook 16 M1 Pro芯片)上安装Phalcon 3.4。我试过之后:
zaenkhilji@Zaens-MacBook-Pro ~ % brew tap phalcon/extension https://github.com/phalcon/homebrew-tap
brew install phalcon
==> Tapping phalcon/extension
Cloning into '/opt/homebrew/Library/Taps/phalcon/homebrew-extension'...
remote: Enumerating objects: 369, done.
remote: Counting objects: 100% (215/215), done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 369 (delta 140), reused 122 (delta 83), pack-reused 154
Receiving objects: 100% (369/369), 65.43 KiB | 1.26 MiB/s, done.
Resolving deltas: 100% (224/224), done.
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0.0.rb
phalcon@4.0.0: undefined method `cellar' for #<BottleSpecification:0x000000012705d6b0>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/psr@74.rb
psr@74: undefined method `cellar' for #<BottleSpecification:0x0000000127135b28>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0.4.rb
phalcon@4.0.4: undefined method `cellar' for #<BottleSpecification:0x00000001261297e8>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@3.4.rb
phalcon@3.4: undefined method `cellar' for #<BottleSpecification:0x0000000126253060>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0.5.rb
phalcon@4.0.5: undefined method `cellar' for #<BottleSpecification:0x0000000126291568>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.1.0.rb
phalcon@4.1.0: undefined method `cellar' for #<BottleSpecification:0x00000001262ca020>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0rc3.rb
phalcon@4.0rc3: undefined method `cellar' for #<BottleSpecification:0x000000012724f900>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0rc2.rb
phalcon@4.0rc2: undefined method `cellar' for #<BottleSpecification:0x000000012728c6c0>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@73_4.0.0.rb
phalcon@73_4.0.0: undefined method `cellar' for #<BottleSpecification:0x00000001272c47a0>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0.6.rb
phalcon@4.0.6: undefined method `cellar' for #<BottleSpecification:0x00000001262e7aa8>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0.2.rb
phalcon@4.0.2: undefined method `cellar' for #<BottleSpecification:0x00000001262fe208>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/psr@73.rb
psr@73: undefined method `cellar' for #<BottleSpecification:0x00000001263155e8>
Error: Invalid formula: /opt/homebrew/Library/Taps/phalcon/homebrew-extension/Formula/phalcon@4.0.3.rb
phalcon@4.0.3: undefined method `cellar' for #<BottleSpecification:0x000000012632c888>
Error: Cannot tap phalcon/extension: invalid syntax in tap!
Warning: No available formula or cask with the name "phalcon". Did you mean falcon?
==> Searching for similarly named formulae...
This similarly named formula was found:
falcon
To install it, run:
brew install falcon
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
剩下的选择是什么?还是没有对基于手臂的设备的支持?
发布于 2021-10-31 12:39:49
错误消息(have 'arm64', need 'x86_64')表示xampp是一个x86_64应用程序,但是从macport安装的php73-phalcon3是arm64。你可以尝试下载x86版本 of php73-phalcon3。解压缩并将phalcon.so复制到xampp扩展目录。
发布于 2021-11-04 21:44:00
到目前为止,Phalcon < 3.*不受基于arm64 64的芯片的支持。Phalcon >4。*支持基于arm64 64的芯片。
我对这个问题的解决方案是部署一个docker映像并运行该项目,直到我们没有升级到新版本的Phalcon。在几乎30h+之后,这已经很好了。
发布于 2021-11-10 04:13:01
你可能需要走码头路线:https://github.com/MilesChou/docker-phalcon
我在M1 Pro上做过这件事,它很有效。
也许也可以使用https://www.vagrantup.com/,但我还没有在M1上尝试过。不过,过去效果很好。
https://stackoverflow.com/questions/69786394
复制相似问题