-1

I get this error when I run

\curl -L  https://get.rvm.io | bash -s stable:

Command 'bash' is available in '/bin/bash'
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: command not found

curl: (23) Failed writing body (0 != 15640)

Anyone know how to fix this?

muru
  • 197,895
  • 55
  • 485
  • 740
  • what does 'which curl', 'which bash' and 'echo $PATH' says? – Ashu Feb 26 '16 at 00:51
  • $PATH says this: /usr/bin:/home/jack/local/bin:/home/jack/desktop/extract:/usr/bin curl version 7.47.1 (newest updated version) – LetsDoIt Feb 26 '16 at 00:53
  • anyone? I'm really trying to understand how to fix this, but I don't know what to do or the steps to figure it out. I'm new and confused. – LetsDoIt Feb 26 '16 at 01:07

2 Answers2

0

You are missing /bin: (where bash lives) on your path. The information on resolving that is in this related post

Elder Geek
  • 36,023
  • 25
  • 98
  • 183
-1

Your $PATH has got some issues. Why twice /usr/bin is being mentioned.it needs to be fixed first. Essentially /usr/bin should be in the path.

My path entry is

echo $PATH
/opt/anaconda2/bin:/opt/anaconda2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/gradle/bin

Note : recently i installed anaconda so it is in front of other default and i should be correcting that.

Also in case you don't have curl installed then try installing it

sudo apt-get install curl
Ashu
  • 3,966
  • I have curl installed, but I don't understand how to change the $PATH. I don't know what to type or change to make it work. – LetsDoIt Feb 26 '16 at 01:15
  • @LetsDoIt. It should be easy...just cd to your home directory and look for .bashrc or .profile using vi or gedit and make the changes....once done do a source .bashrc and check the path and try this. – Ashu Feb 26 '16 at 02:42