Rbenv Installed Ruby 2.1.2 Cannot Load Such File -- Zlib on MAC Osx 10.9.2

rbenv install --list does not list version 2.1.2

Both rbenv and ruby-build are generally installed from Github by cloning; That's how the authors recommend we install it.

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

If you didn't do it that way I'd recommend that method. Then, you can simply do:

cd ~/.rbenv
git pull
cd plugins/ruby-build
git pull

If you have several plugins use:

cd plugins
for i in *
do
cd $i
git pull
cd -
done

I update every couple weeks just to pull in the latest fixes/changes.

rbenv can't change global ruby version

Did you add the following lines to your ~/.bash_profile?

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

See: https://github.com/sstephenson/rbenv#installation

Install rbenv or Homebrew first?

The installation instructions for rbenv on MacOS assume Homebrew is already installed so this should be done first.

https://github.com/rbenv/rbenv#homebrew-on-macos



Related Topics



Leave a reply



Submit