2
I tried to install the Composer on OSX 10.10.3 following the website’s instructions:
curl -sS https://getcomposer.org/installer | php
and after that I’m no longer able to execute the commands curl, ls, among others. The terminal does not execute these commands and returns me the following message:
-bash: curl: command not found
How can I fix this?
The
dirdoes not exist (to the best of my knowledge), andcurlmay not come as default on Mac (I don’t know). Are you sure the problem occurs with thelsalso? Or some other common command, likecd?– Gabe
dirreally doesn’t work-bash: dir: command not found, typingcurlappearscurl: try 'curl --help' or 'curl --manual' for more information,lslists files and directories. As @Gabe mentioned, it’s weirdlsnot working, you really tested?– Paulo
That’s right, the command
lsreturns the same error, thecurlalso returns the same error.-bash: curl: command not found. The commandscdandpwdwork normally.– SimãoPedroS
Your
PATHmay have been changed. You edit your question and place yourPATH(echo $PATH)? And also awhich cd, just to know where it is?– Gabe
What version of OS X? Commands stopped working at any particular time?
– rodorgas
The version of OS X is 10.10.3, It stopped working when I went to install Composer running this command
curl -sS https://getcomposer.org/installer | php, ai gave the error message and did not work.– SimãoPedroS
I went through the Composer installer, and I couldn’t find anything that could have caused the problem. Are you sure that everything worked before? What is the result of your
echo $PATH?– Gabe
Probably the installation script has changed your ~/. bash_profile. Usually something is added at the end of the file with relevant comments. Check and comment on any suspicious line that has the PATH variable involved.
– cemdorst
echo $PATH/Library/Frameworks/Python.framework/Versions/3.4/bin::/bin:“/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home”/bin– SimãoPedroS