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
dir
does not exist (to the best of my knowledge), andcurl
may not come as default on Mac (I don’t know). Are you sure the problem occurs with thels
also? Or some other common command, likecd
?– Gabe
dir
really doesn’t work-bash: dir: command not found
, typingcurl
appearscurl: try 'curl --help' or 'curl --manual' for more information
,ls
lists files and directories. As @Gabe mentioned, it’s weirdls
not working, you really tested?– Paulo
That’s right, the command
ls
returns the same error, thecurl
also returns the same error.-bash: curl: command not found
. The commandscd
andpwd
work normally.– SimãoPedroS
Your
PATH
may 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