I took these steps to successfully get rid of rbenv on my mac running El Capitan (10.11.4). Rbenv is a major cause of Failed to build gem native extension errors from my experience.
- Remove using brew:
brew remove rbenv - Delete
.rbenvdirectory:rm -rf ~/.rbenv
For Bash
- Open
.bash_profilefile and delete any lines with rbenv in them:vi ~/.bash_profile - Open
.bashrcfile and delete any lines with rbenv in them:vi ~/.bashrc
Finally, reload .bash_profile and .bashrc:
. ~/.bash_profile && . ~/.bashrc
For ZShell
- Open
.zprofilefile and delete any lines with rbenv in them - Open
.zshrcfile and delete any lines with rbenv in them
Finally, reload .zprofile and .zshrc:
Answer from pyfork on Stack Overflow. ~/.zprofile && . ~/.zshrc
I took these steps to successfully get rid of rbenv on my mac running El Capitan (10.11.4). Rbenv is a major cause of Failed to build gem native extension errors from my experience.
- Remove using brew:
brew remove rbenv - Delete
.rbenvdirectory:rm -rf ~/.rbenv
For Bash
- Open
.bash_profilefile and delete any lines with rbenv in them:vi ~/.bash_profile - Open
.bashrcfile and delete any lines with rbenv in them:vi ~/.bashrc
Finally, reload .bash_profile and .bashrc:
. ~/.bash_profile && . ~/.bashrc
For ZShell
- Open
.zprofilefile and delete any lines with rbenv in them - Open
.zshrcfile and delete any lines with rbenv in them
Finally, reload .zprofile and .zshrc:
. ~/.zprofile && . ~/.zshrc
I think you should be able to uninstall rbenv by simply removing ~/.rbenv.
rm -rf ~/.rbenv
Or, if you installed rbenv via Homebrew, you can do
rm -rf `brew --prefix`/Cellar/rbenv
Possible to deactivate rbenv?
Uninstall Ruby, rbenv and homebrew and reinstall Ruby on Rails with RVM on MAC - Stack Overflow
Trying to uninstall rbenv
How to start over (uninstall Ruby, gems, anything else)?
My console is showing; I tried rbenv deactivate but thats command not found.
Is there a way to remove it from my python directory but keep it for my ruby or rails directory? I am using ohmyzsh and zsh
~/Developer/Python/CS50_Python (ruby icon) 3.3.0
Homebrew or Rbenv are very good tools to have as a dev, I would think twice before removing either.
In this case I doubt they are at fault.
Can you confirm you have installed the GCC command line utils for OSX by running $ xcode-select --install in your terminal.
Here is a useful post explaining that process but I find that command generally works fine for me.
If this succeeds what does your $ gem install rails output next?
If you are very new you and you don't need specially the last version of Ruby. You can use Rails Installer http://railsinstaller.org/fr-FR.
To uninstall brew https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md