Reputation: 31
When opening my Terminal and/or using an IDE to write code, I get the following message:
-bash: export PATH="/Users/ryananding/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/usr/local/Cellar/rbenv/1.1.2/libexec/../completions/rbenv.bash'
command rbenv rehash 2>/dev/null
rbenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval "$(rbenv "sh-$command" "$@")";;
*)
command rbenv "$command" "$@";;
esac
}: No such file or directory
I have followed the instructions found on https://github.com/rbenv/rbenv and the rbenv doctor doesn't show any errors. Any help would be appreciated.
Upvotes: 3
Views: 7964
Reputation: 1
Try to check your rbenv directory on terminal.
ls -la /usr/local/Cellar/rbenv
list rbenv version. For me personly, there is 1.2.0 instaed of 1.1.2 . If there is no rbenv version, using brew install rbenv ruby-build
1source '/usr/local/Cellar/rbenv/1.x.x/libexec/../completions/rbenv.bash'
source ~/.bash_profile
Upvotes: -1
Reputation: 4450
This line fails during loading of bash
source '/usr/local/Cellar/rbenv/1.1.2/libexec/../completions/rbenv.bash
You need to set right path to rbenv.bash
file from /completions
folder
To find the folder do:
rbenv --version
=> 1.1.2
/completions
folder ls -la /usr/local/Cellar/rbenv/1.1.2/
rbenv.bash
file in your .bash_profile
which is source '/usr/local/Cellar/rbenv/1.1.2/completions/rbenv.bash'
Upvotes: -1