Proper setup of .bash_profile for MAMP

Silverstripe Version:

How does your .bash_profile look?

I’m not quite clear on the MAMP php version, and the MacOS php. When working on localhost does SS only want to use the MAMP version of php? I feel I get crossways with the MAMP install and perhaps it has to do with the .bash_profile.

This post has some good ideas, but it’s based on wordpress. Is there a post somewhere dealing with SS and the proper .bash_profile setup?

I’ve tried using this line but get the same error as I do below:

Trying to get phpdebugbar to work so I can eventually get the silverstripe plugin to work on top of it.

just seems like I have endless issues get the proper localhost environment setup.

Do you use this silverstripe-debugbar?

Trevors-Mac-mini:htdocs trevorpan$ composer install.phar

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/, 0x0009): closured error in Unknown on line 0

  Command "install.phar" is not defined.                          

The above is using the system php. I’ve added this dependency to the composer.json file but the above command returns the above error.

After many weeks, finally found a solution.

I had an error which would not allow me to login in to my computer “too many corpses created.” This required a fix which turned on System Integrity Protection.

So when I tried to plop into the folder above it denied me permissions. So did

pecl install intl

This link will make you happy: