if it fails after you installed Xcode you might need to run $ xcode-select --install
John On Tuesday, June 21, 2016 at 10:09:00 AM UTC-5, Eugeniu Tambur wrote: > > Hello, > You have installed Xcode ?? > P.S. why not rvm ?? :) > > Br, > Eugeniu T. > > El martes, 21 de junio de 2016, 6:58:53 (UTC+2), Bryan Singh escribió: >> >> 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? >> > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cd1894c5-be21-496c-8d59-fd8f4a0feab4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.