Open louiemiranda opened 2 years ago
Having had the same problem here are my steps for the solution:
Try the install once to setup php etc, so this error occurs
Download psr and compile from source: https://github.com/jbboehr/php-psr into the /opt/homebrew/Cellar/php@7.4/7.4.30/include/php/ext/ directory You will need to use the suggested call
cd <directory where source is downloaded>
/opt/homebrew/opt/php@7.4/bin/phpize
./configure --prefix=/opt/homebrew/Cellar/phalcon@4.0.4/4.0.4 --with-php-config=/opt/homebrew/opt/php@7.4/bin/php-config --enable-phalcon
make
make test
sudo make install
Remove the psr dependency from the brew build. In my case I was running 4.0.4
brew edit phalcon@4.0.4
Comment out depend_on psr
depends_on "pcre"
# depends_on "psr"
Run the install to complete the install
brew install phalcon@4.0.4
You will then need to edit the php ini file to include the path to psr.so
nano /opt/homebrew/etc/php/7.4/conf.d/ext-phalcon.ini
The entire build log.
Tried to chmod 777 the folder
/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/ext/psr/
, but still hascp
issue. Tried other phalcon version, but it's still the same.What could be wrong here?