Updating ruby on the mac

Please see the ruby-build wiki for solutions to common problems.If you can't find an answer on the wiki, open an issue on the issue tracker.Rbenv does not include a way to manage gems, like with RVM, though most people prefer to use Bundler gem management instead. Rbenv doesn’t work on Windows (and isn’t really necessary on Windows as there is no system Ruby on Windows).

Download the applicable package for your version of Mac OS X: Once you have downloaded the file, double-click on the to open it, then double-click on the file to run the Command Line Tools installer: If you have time to install Xcode, it’s handy to have it around, though not really required for Ruby development.

If you are running Mac OS X Mountain Lion 10.8, you will need to make sure that you have OS X version 10.8.4 or later to install Xcode, otherwise the App Store will issue the following complaint: Download and install the latest version of Xcode from the App Store. Next, you’ll need to install the Homebrew package manager to get all the dependencies needed to compile Ruby from source.

BUILD FAILED (OS X 10.11.6 using ruby-build 20160602) Inspect or clean up the working tree at /var/folders/_y/qc89fk7n3m1f1p5pt8kpsgvdv009dp/T/ruby-build.20160909104415.25429 Results logged to /var/folders/_y/qc89fk7n3m1f1p5pt8kpsgvdv009dp/T/ruby-build.20160909104415.25429Last 10 log lines: compiling vm_backtrace.c compiling vm_trace.c compiling thread.c compiling cont.c compiling ./missing/explicit_bzero.c compiling ./missing/setproctitle.c compiling dmyenc.c make: ./config.status: Permission denied make: *** [ruby-runner.c] Error 1 make: *** Waiting for unfinished jobs....

BUILD FAILED (OS X 10.11.6 using ruby-build 20160602) Inspect or clean up the working tree at /var/folders/_y/qc89fk7n3m1f1p5pt8kpsgvdv009dp/T/ruby-build.20160909110514.33878 Results logged to /var/folders/_y/qc89fk7n3m1f1p5pt8kpsgvdv009dp/T/ruby-build.20160909110514.33878Last 10 log lines: compiling enc/unicode.c compiling enc/utf_8.c compiling enc/trans/newline.c linking miniruby generating encdb.h make: ./miniruby: Permission denied make: ./miniruby: Permission denied make: *** [.rbconfig.time] Error 1 make: *** Waiting for unfinished jobs....

If you don't have an SHA2 program installed, ruby-build will skip the download mirror and use official URLs instead.

Comments