New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninstall? #148

Closed
cj opened this Issue Nov 19, 2011 · 18 comments

Comments

Projects
None yet
@cj

cj commented Nov 19, 2011

Hi,

How do you uninstall rbenv?

@telemachus

This comment has been minimized.

Show comment
Hide comment
@telemachus

telemachus Nov 19, 2011

Contributor

rm -rf ~/.rbenv and then remove whatever you added to your shell's start-up files. If you used Homebrew, then brew uninstall rbenv.

Contributor

telemachus commented Nov 19, 2011

rm -rf ~/.rbenv and then remove whatever you added to your shell's start-up files. If you used Homebrew, then brew uninstall rbenv.

@josh josh closed this Nov 22, 2011

@arena

This comment has been minimized.

Show comment
Hide comment
@arena

arena Sep 27, 2014

How do you delete things from your shell's start-up files?

arena commented Sep 27, 2014

How do you delete things from your shell's start-up files?

@mislav

This comment has been minimized.

Show comment
Hide comment
@mislav

mislav Sep 28, 2014

Member

@arena: Delete anything matching "rbenv" in these files:

grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc
Member

mislav commented Sep 28, 2014

@arena: Delete anything matching "rbenv" in these files:

grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc
@jareks

This comment has been minimized.

Show comment
Hide comment
@jareks

jareks Oct 14, 2014

I think you are missing /etc/profile:

grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc /etc/profile /etc/profile.d/*

jareks commented Oct 14, 2014

I think you are missing /etc/profile:

grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc /etc/profile /etc/profile.d/*

@arena

This comment has been minimized.

Show comment
Hide comment
@arena

arena Oct 16, 2014

Thank you @jareks! I decided not to uninstall. I was trying to uninstall so that I could reinstall clean, but then @mislav helped me fix my install. :)

arena commented Oct 16, 2014

Thank you @jareks! I decided not to uninstall. I was trying to uninstall so that I could reinstall clean, but then @mislav helped me fix my install. :)

@dannyboone

This comment has been minimized.

Show comment
Hide comment
@dannyboone

dannyboone Dec 2, 2014

When i run this command:

grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc /etc/profile /etc/profile.d/*

i get this response:

Daniels-MBP:~ Danny$ grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc /etc/profile /etc/profile.d/*
grep: /Users/Danny/.bashrc: No such file or directory
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
/Users/Danny/.bash_profile:export PATH="$HOME/.rbenv/bin:$PATH"
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
/Users/Danny/.bash_profile:export PATH="$HOME/.rbenv/bin:$PATH"
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
/Users/Danny/.bash_profile:export PATH="$HOME/.rbenv/bin:$PATH"
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
grep: /Users/Danny/.zshrc: No such file or directory
grep: /etc/profile.d/*: No such file or directory

How do i remove all of these things from the startup files?

dannyboone commented Dec 2, 2014

When i run this command:

grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc /etc/profile /etc/profile.d/*

i get this response:

Daniels-MBP:~ Danny$ grep rbenv ~/.bashrc ~/.bash_profile ~/.zshrc /etc/profile /etc/profile.d/*
grep: /Users/Danny/.bashrc: No such file or directory
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
/Users/Danny/.bash_profile:export PATH="$HOME/.rbenv/bin:$PATH"
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
/Users/Danny/.bash_profile:export PATH="$HOME/.rbenv/bin:$PATH"
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
/Users/Danny/.bash_profile:export PATH="$HOME/.rbenv/bin:$PATH"
/Users/Danny/.bash_profile:eval "$(rbenv init -)"
grep: /Users/Danny/.zshrc: No such file or directory
grep: /etc/profile.d/*: No such file or directory

How do i remove all of these things from the startup files?

@mislav

This comment has been minimized.

Show comment
Hide comment
@mislav

mislav Dec 2, 2014

Member

Some script must have kept adding them to your .bash_profile, resulting in duplicates. To fix this, open ~/.bash_profile in your editor, remove all rbenv-related lines, and just keep this:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
Member

mislav commented Dec 2, 2014

Some script must have kept adding them to your .bash_profile, resulting in duplicates. To fix this, open ~/.bash_profile in your editor, remove all rbenv-related lines, and just keep this:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
@dannyboone

This comment has been minimized.

Show comment
Hide comment
@dannyboone

dannyboone Dec 2, 2014

I believe it was me who added all of these duplicates. I was attempting to install rbenv following along with the video on Treehouse.com, and the install failed for me. I kept recieveing this error:

-bash: rbenv: command not found

I attempted to paste the code multiple times and ended up with this result. I decided to try and delete rbenv and all shell startup files and i ended up here in this thread. Please forgive me as Im a bit new to the console so i dont know what commands to type into the terminal to actually remove these lines.

dannyboone commented Dec 2, 2014

I believe it was me who added all of these duplicates. I was attempting to install rbenv following along with the video on Treehouse.com, and the install failed for me. I kept recieveing this error:

-bash: rbenv: command not found

I attempted to paste the code multiple times and ended up with this result. I decided to try and delete rbenv and all shell startup files and i ended up here in this thread. Please forgive me as Im a bit new to the console so i dont know what commands to type into the terminal to actually remove these lines.

@dannyboone

This comment has been minimized.

Show comment
Hide comment
@dannyboone

dannyboone Dec 2, 2014

I did it! Nevermind. This is how i did it:
touch .bash_profile

then say:

open -a TextEdit.app .bash_profile

TextEdit will show you a blank page which you can fill in.

Thanks again!!!

dannyboone commented Dec 2, 2014

I did it! Nevermind. This is how i did it:
touch .bash_profile

then say:

open -a TextEdit.app .bash_profile

TextEdit will show you a blank page which you can fill in.

Thanks again!!!

@jluria

This comment has been minimized.

Show comment
Hide comment
@jluria

jluria Dec 5, 2014

@mislav I recently had a problem with my ruby build, chruby wasn't working to rebuild my install, so I temporarily used rbenv and ruby-build to rebuild my ruby. Now I'm uninstalling ruby-build and rbenv, and I removed all rbenv references in my bash profile. Why should I leave this:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

in my bash profile?

jluria commented Dec 5, 2014

@mislav I recently had a problem with my ruby build, chruby wasn't working to rebuild my install, so I temporarily used rbenv and ruby-build to rebuild my ruby. Now I'm uninstalling ruby-build and rbenv, and I removed all rbenv references in my bash profile. Why should I leave this:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

in my bash profile?

@mislav

This comment has been minimized.

Show comment
Hide comment
@mislav

mislav Dec 6, 2014

Member

@jluria Apologies, when I said to leave those in I meant for people who want to have rbenv, but are confused by duplicates.

However since this thread is about uninstallation of rbenv, then of course, remove every line that references rbenv and you'll be good to go.

Member

mislav commented Dec 6, 2014

@jluria Apologies, when I said to leave those in I meant for people who want to have rbenv, but are confused by duplicates.

However since this thread is about uninstallation of rbenv, then of course, remove every line that references rbenv and you'll be good to go.

@jluria

This comment has been minimized.

Show comment
Hide comment
@jluria

jluria Dec 6, 2014

Ah, ok. Now I see what you were saying. My fault.

jluria commented Dec 6, 2014

Ah, ok. Now I see what you were saying. My fault.

@willvlad

This comment has been minimized.

Show comment
Hide comment
@willvlad

willvlad Oct 22, 2015

@mislav I kept on getting the error that rbenv no such command init whenever I started bash until I deleted export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)" from the .bash_profile. Now bash starts cleanly. I'm new to this so may be not understanding something, but why are you saying that those who want rbenv should have these lines in the bash_profile? They seem to be causing an error for me...

willvlad commented Oct 22, 2015

@mislav I kept on getting the error that rbenv no such command init whenever I started bash until I deleted export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)" from the .bash_profile. Now bash starts cleanly. I'm new to this so may be not understanding something, but why are you saying that those who want rbenv should have these lines in the bash_profile? They seem to be causing an error for me...

@mislav

This comment has been minimized.

Show comment
Hide comment
@mislav

mislav Oct 22, 2015

Member

@willvlad I don't understand whether you want to have rbenv on your system or not?

  1. If you want rbenv on your system, then you should have these lines in .bash_profile
  2. If you don't want rbenv, i.e. uninstall rbenv, then you should remove these lines from .bash_profile. It's not complicated.
Member

mislav commented Oct 22, 2015

@willvlad I don't understand whether you want to have rbenv on your system or not?

  1. If you want rbenv on your system, then you should have these lines in .bash_profile
  2. If you don't want rbenv, i.e. uninstall rbenv, then you should remove these lines from .bash_profile. It's not complicated.
@willvlad

This comment has been minimized.

Show comment
Hide comment
@willvlad

willvlad Oct 22, 2015

@mislav I do want to keep it on my system. If I follow your number 1, my git bash throws an error that there is no such command... If I delete it from the bash_profile, I don't get any errors... Does this clarify?

willvlad commented Oct 22, 2015

@mislav I do want to keep it on my system. If I follow your number 1, my git bash throws an error that there is no such command... If I delete it from the bash_profile, I don't get any errors... Does this clarify?

@mislav

This comment has been minimized.

Show comment
Hide comment
@mislav

mislav Oct 22, 2015

Member

@willvlad So how and where did you install rbenv on your system?

Member

mislav commented Oct 22, 2015

@willvlad So how and where did you install rbenv on your system?

@PlantCreative

This comment has been minimized.

Show comment
Hide comment
@PlantCreative

PlantCreative Nov 14, 2015

I believe @dannyboone and @willvlad saw a video similar to this one: http://bit.ly/1PGE2fr based on their questions…

PlantCreative commented Nov 14, 2015

I believe @dannyboone and @willvlad saw a video similar to this one: http://bit.ly/1PGE2fr based on their questions…

@u4680325

This comment has been minimized.

Show comment
Hide comment
@u4680325

u4680325 Mar 22, 2016

ty a lot i can now move to rvm

u4680325 commented Mar 22, 2016

ty a lot i can now move to rvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment