Setting up Ruby on OSX (Yosemite)

AgentOps Show · 13K views · 2014 · 5:39

Open on YouTube

Python, Ruby & scripting languagesTesting, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the install guide they followed, usually when asking why their rbenv or Ruby setup on a Mac failed.

Recommended by 1 people across 1 different months, 2015 to 2016.

What it is

A short screencast from Codemy that walks through installing Ruby on a Mac running OS X Yosemite, using rbenv and the terminal. It covers editing the shell profile and installing a Ruby version step by step.

What people said

Recommends Erik · 2015-04 · Stack Overflow · on “Why am I getting this in Ruby?”

thank you. would you happen to know of a tutorial to update to 2.2.1 on yosemite? or maybe you can tell me if [this video] is the right way?

Cites Sniper · 2015-02 · Stack Overflow · on “Trying to set up RBENV”

I have been following this guide: [this video] However I do not have a clue what he does at 2:02? I type what he typed but mine looks different, I get: # added by Anaconda 2.1.0 installer export PATH="/Users/me/anaconda/bin:$PATH" export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -- INSERT -- and try and paste what he pasted at the top (above # which lets me, but then he does something and enters :wq and then goes back to the Terminal which I cannot seem to do?

Cites abhimanyuaryan · 2015-03 · Stack Overflow · on “failed to install ruby with rbenv”

I followed this video: for how to install ruby [this video] . But then I couldn't install ruby. There are some other people as well with such kind of issue [LINK] . Please help me to fix it. Thanks. rbenv install 2.2.1 Downloading ruby-2.2.1.tar.gz... -> [LINK] Installing ruby-2.2.1... BUILD FAILED (OS X 10.10.2 using ruby-build 20150319zf) Inspect or clean up the working tree at /var/folders/c8/tr13g20944g8jymgp72wz7pw0000gn/T/ruby-build.20150326002550.58440 Results logged to /var/folders/c8/tr13g20944g8jymgp72wz7pw0000gn/T/ruby-build.20150326002550.58440.log Last 10 log lines: psych 2.0.8 rake 10.4.2 rdoc 4.2.0 ./tool/rbinstall.rb:714:in `rescue in block in <main>': uninitialized constant LoadE

Cites zhiming jiang · 2016-07 · Stack Overflow · on “Cannot install ruby on MAC 10.11.5”

I cannot install ruby new version. I stall the home-brew and ruby-build, both install successful. I type $ rbenv, it shows ... install Install a Ruby version using ruby-build ... then i stall version 2.3.1 $ rbenv install 2.3.1 it shows error Zhimings-MacBook-Pro:~ zhimingjiang$ rbenv install 2.3.1 Downloading ruby-2.3.1.tar.bz2... -> [LINK] Installing ruby-2.3.1... mkdir: /usr/local/var/rbenv/versions/2.3.1/lib: Permission denied BUILD FAILED (OS X 10.11.5 using ruby-build 20160426) Inspect or clean up the working tree at /var/folders/wf/tkkf34w562q8mqb59f43lnrh0000gn/T/ruby-build.20160703231044.15035 Results logged to /var/folders/wf/tkkf34w562q8mqb59f43lnrh0000gn/T/ruby-build.201607032310