#!/usr/bin/env sh | |
brew update | |
brew install rbenv | |
brew install ruby-build | |
brew install openssl | |
CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` rbenv install 2.0.0-preview1 |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
hmmm i got the following error, when doing your rbenv command.. BUILD FAILED Inspect or clean up the working tree at /var/folders/63/6371tP-tEXaPCC4JHxbmNU+++TI/-Tmp-/ruby-build.20130405124859.9988 Results logged to /var/folders/63/6371tP-tEXaPCC4JHxbmNU+++TI/-Tmp-/ruby-build.20130405124859.9988.log Last 10 log lines: x openssl-1.0.1e/VMS/TODO x openssl-1.0.1e/VMS/ucx_shr_decc_log.opt x openssl-1.0.1e/VMS/ucx_shr_decc.opt x openssl-1.0.1e/VMS/ucx_shr_vaxc.opt x openssl-1.0.1e/VMS/VMSify-conf.pl x openssl-1.0.1e/VMS/WISHLIST.TXT /var/folders/63/6371tP-tEXaPCC4JHxbmNU+++TI/-Tmp-/ruby-build.20130405124859.9988/openssl-1.0.1e /var/folders/63/6371tP-tEXaPCC4JHxbmNU+++TI/-Tmp-/ruby-build.20130405124859.9988 ~ Operating system: i686-apple-darwinDarwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 Configuring for darwin64-x86_64-cc Usage: Configure [no- ...] [enable- ...] [experimental- ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags] |
This comment has been minimized.
This comment has been minimized.
Yes, I got the same error :( |
This comment has been minimized.
This comment has been minimized.
@lpsBetty @bigardone Ran into same issue just now. You need to install xcode and run it for the first time. Additionally, you want to install xcode command line tools to for "make". Go to apple dev website. You can download it for free. |
This comment has been minimized.
This comment has been minimized.
i already have xcode command line tools installed.. (but not the full xcode) |
This comment has been minimized.
This comment has been minimized.
got the same error when trying to install p195 :( please tell me if this worked for you: |
This comment has been minimized.
This comment has been minimized.
Should be |
This comment has been minimized.
This comment has been minimized.
I still had issues. I had to add a few lines to the top of ext/openssl/openssl_missing.h in addition to specifying homebrew installed openssl. Details of what worked for me here: https://gist.github.com/timcharper/5778185 |
This comment has been minimized.
This comment has been minimized.
Here's the command I used for installing for development purposes --
The I also found it necessary to use Note: This also seems to work with later GCC versions. I've tested with 4.8 and 4.9 also, but it's been a while. |
This comment has been minimized.
Great👍 !
On OS X Mountain Lion, I had to add also
--with-gcc=clang
to CONFIGURE_OPTS to avoid a compilation error.