Skip to content

Instantly share code, notes, and snippets.

@BrandonKnudsen
Forked from dreammonkey/install GRPC (MAMP)
Last active March 31, 2021 22:40
Show Gist options
  • Select an option

  • Save BrandonKnudsen/ecaffd92cd05209877fc619355aee6e7 to your computer and use it in GitHub Desktop.

Select an option

Save BrandonKnudsen/ecaffd92cd05209877fc619355aee6e7 to your computer and use it in GitHub Desktop.
1. download PECL:
$ curl -O https://pear.php.net/go-pear.phar
2.install PECL in MAMP PHP folder:
$ sudo php -d detect_unicode=0 go-pear.phar
!!! make sure the installation directories look like this: !!!
1. Installation base ($prefix) : /Applications/MAMP/bin/php/php7.4.9
2. Temporary directory for processing : /tmp/pear/install
3. Temporary directory for downloads : /tmp/pear/install
4. Binaries directory : /Applications/MAMP/bin/php/php7.4.9/bin
5. PHP code directory ($php_dir) : /Applications/MAMP/bin/php/php7.4.9/share/pear
6. Documentation directory : /Applications/MAMP/bin/php/php7.4.9/docs
7. Data directory : /Applications/MAMP/bin/php/php7.4.9/data
8. User-modifiable configuration files directory : /Applications/MAMP/bin/php/php7.4.9/cfg
9. Public Web Files directory : /Applications/MAMP/bin/php/php7.4.9/www
10. System manual pages directory : /Applications/MAMP/bin/php/php7.4.9/man
11. Tests directory : /Applications/MAMP/bin/php/php7.4.9/tests
12. Name of configuration file : /Applications/MAMP/Library/etc/php/7.4.9/pear.conf
3/ Install GRPC
(seems to work ->) $ sudo pecl install grpc
(seems more logical ->) $ sudo /Applications/MAMP/bin/php/php7.4.9/bin/pecl install grpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment