Skip to content

Instantly share code, notes, and snippets.

@sumitpore
Created April 4, 2020 09:09
Show Gist options
  • Save sumitpore/14ff41b6d260c133ea6e4848ea5f7b67 to your computer and use it in GitHub Desktop.
Save sumitpore/14ff41b6d260c133ea6e4848ea5f7b67 to your computer and use it in GitHub Desktop.
Installing pcov extension on MacOS to be used with Local by Flywheel
git clone https://github.com/krakjoe/pcov.git
cd pcov
/usr/local/bin/phpize
./configure
export INCLUDE_PATH=/Applications/Local.app/Contents/Resources/extraResources/lightning-services/php-7.3.5+3/bin/darwin/include
make CPPFLAGS="-I${INCLUDE_PATH}/php -I${INCLUDE_PATH}/php/main -I${INCLUDE_PATH}/php/TSRM -I${INCLUDE_PATH}/php/Zend -I${INCLUDE_PATH}/php/ext -I${INCLUDE_PATH}/php/ext/date/lib"
sudo make install
sudo cp $(php-config --extension-dir)/pcov.so /usr/local/php/extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment