Installing Rails

35 views
Skip to first unread message

Bryan Singh

unread,
Jun 21, 2016, 12:58:53 AM6/21/16
to Ruby on Rails: Talk
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? 

Eugeniu Tambur

unread,
Jun 21, 2016, 11:09:00 AM6/21/16
to Ruby on Rails: Talk
Hello, 
You have installed Xcode ??
 P.S. why not rvm ?? :)

Br,
Eugeniu T.

John Ivanoff

unread,
Jun 29, 2016, 9:16:20 AM6/29/16
to Ruby on Rails: Talk
if it fails after you installed Xcode you might need to run

$ xcode-select --install

John
Reply all
Reply to author
Forward
0 new messages