Dealing With ‘no bash profile’ error when trying to run phalcon.sh

I recently installed XAMPP, Phalcon.so and Phalcon DevTools on a new MAC. When I tried to run ./phalcon.sh to verify it was installed correctly I received this error:

“no bash profile”

To fix this, I edited my .bash_profile file. I added these two lines to the top of the file:

export XAMPP_HOME=/Applications/XAMPP
export PATH=${XAMPP_HOME}/bin:${PATH}

This tells the MAC to use the PHP version that is a part of my XAMPP install (which includes phalcon.so).

After a restart of the terminal, I was able to run ./phalcon.sh successfully.

Thank you stackoverflow!

Leave a Reply

Your email address will not be published. Required fields are marked *