Installing Rails

I am trying to install Rails onto a new computer, running OS X El
Capitan.

I run

rbenv install 2.3.1

and then it errors out and I get

Downloading ruby-2.3.1.tar.bz2…

/var/folders/tl/8vtvj5l967v6qjh162g3k2c40000gn/T/ruby-build.20160620185954.82857
The Ruby zlib extension was not compiled.

CFLAGS= -O3 -Wno-error=shorten-64-to-32

LDFLAGS=-L/Users/BryanSingh/.rbenv/versions/2.3.1/lib

CPPFLAGS=-I/Users/BryanSingh/.rbenv/versions/2.3.1/include

I am lost here. Any Ideas?

Hello,
You have installed Xcode ??
P.S. why not rvm ?? :slight_smile:

Br,
Eugeniu T.

El martes, 21 de junio de 2016, 6:58:53 (UTC+2), Bryan Singh escribió:

if it fails after you installed Xcode you might need to run

$ xcode-select --install

John