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…
→ https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.bz2
Installing ruby-2.3.1…
BUILD FAILED (OS X 10.11.4 using ruby-build 20160426)
Inspect or clean up the working tree at /var/folders/tl/8vtvj5l967v6qjh162g3k2c40000gn/T/ruby-build.20160620185954.82857
Results logged to /var/folders/tl/8vtvj5l967v6qjh162g3k2c40000gn/T/ruby-build.20160620185954.82857.log
Last 10 log lines:
installing capi-docs: /Users/BryanSingh/.rbenv/versions/2.3.1/share/doc/ruby
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
–prefix=/Users/BryanSingh/.rbenv/versions/2.3.1
–with-openssl-dir=/usr/local/opt/openssl
CC=clang
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?