Sigh... first, take a close look at your path:
PATH=usr/local/bin:/urs/local/sbin:/usr/local/mysql/bin:usr/local/bin:/urs/local/sbin:/usr/loca /mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
You have multiple definitions for the same directories, and, in addition have what are very likely invalid directory names:
usr/local/bin
should be/usr/local/bin
.usr/local/bin
is a relative directory name, which would usually be invalid anywhere unless you're in your/
directory. This is in the path multiple times, so remove all but the middle one and fix the name./urs/local/sbin
is probably a misspelled directory/usr/local/sbin
, but, at the same time, you probably shouldn't have a.../sbin
directory in your path because you'll seldom use the files in there. That particular directory is in your path twice, so remove at least one./usr/loca /mysql/bin
is totally invalid so remove it. If you are using MySQL, then fix that entry; It's probably/usr/local/share/mysql/bin
, but confirm that and adjust as necessary.
You're using
export PATH="$HOME./rbenv/bin:$PATH"
which is not a valid definition for PATH. $HOME
would normally look like /home/user
, without a terminating or delimiting /
. Using $HOME./rbenv...
would result in /home/user./rbenv...
which isn't valid.
rbenv needs a chance to initialize when your shell session starts. To do that it expects you to add
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
to your ~/.bash_profile file as the very last lines. It's obvious that hasn't been done because your path would reflect that if it had. Mine starts with a reference to rbenv's shim, then bin directories.
I have followed the instructions carefully but it does not seem to be working for some reason.
I'd strongly recommend you read the rbenv documentation for setting it up.