We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How can I use brew to install phalcon?

when i use brew install php72-phalcon:::::::

brew install php72-phalcon

==> Installing php72-phalcon from tigerstrikemedia/phalconphp

==> Downloading https://homebrew.bintray.com/bottles-phalconphp/php72-phalcon-3.4.2.high_sierra.bottle.1.tar.gz

curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "php72-phalcon" Download failed: https://homebrew.bintray.com/bottles-phalconphp/php72-phalcon-3.4.2.high_sierra.bottle.1.tar.gz

Warning: Bottle installation failed: building from source. Error: An exception occurred within a child process: RuntimeError: /usr/local/opt/autoconf not present or broken Please reinstall autoconf. Sorry :(

Try

$ brew install autoconf


1.2k

That's import :

  • curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "php72-phalcon"

Try

$ brew install autoconf
edited Apr '19

I ran into this on MacOS Mojave despite having been able to install phalcon with brew before. The previous process was...

brew tap tigerstrikemedia/phalcon-php
brew install php71-phalcon

It looks like this doesn't work anymore because the brew bottle is no longer available at: https://homebrew.bintray.com/bottles-phalconphp/ and brew was hanging during downloading the source even though the URL was valid. To get around this, I did the following from a Mac Mini running Mojave...

cd /Users/$(whoami)/Downloads
git clone https://github.com/tigerstrikemedia/homebrew-phalconphp

Download phalcon source from https://github.com/phalcon/cphalcon/archive/v3.4.2.zip.

vim homebrew-phalcon/Formula/php71-phalcon.rb

Change the url to point to file:///Users/$(whoami)/path/to/cphalcon-3.4.2.zip

brew install homebrew-phalconphp/Formula/php71-phalcon.rb

Note: You might also see a SHA error such as...

Expected: be73da92f75609aef8a56dd7d906df559fa6de82fbc2668b74aba125389a0d93
Actual: bd806b490a8b7deb33e92239d50ed88a0608708dfc34cd20a4482c537dc5f676

...which can be avoided by updating the SHA value in homebrew-phalcon/Formula/php71-phalcon.rb with the actual SHA value shown.

I resurected the homebrew stuff for phalcon

brew tap phalcon/extension https://github.com/phalcon/homebrew-tap

For 3.5 brew install phalcon For 4.0 current rc brew install [email protected]



126
edited Jun '20

Maybe something are not true

For 3.4 brew install [email protected] For 4.0 brew install phalcon

But I cannot make [email protected] run with [email protected] Could you help me to take a look?

I resurected the homebrew stuff for phalcon

brew tap phalcon/extension https://github.com/phalcon/homebrew-tap

For 3.5 brew install phalcon For 4.0 current rc brew install [email protected]