Skip to content

Instantly share code, notes, and snippets.

@sstarr
Created September 23, 2012 15:33
Show Gist options
  • Save sstarr/3772051 to your computer and use it in GitHub Desktop.
Save sstarr/3772051 to your computer and use it in GitHub Desktop.
Ruby on Mountain Lion
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/Users/simon/.rvm/rubies/ruby-1.9.3-p194 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/simon/.rvm/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = WOPR.local
uname -m = x86_64
uname -r = 12.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 132 tasks, 621 threads, 8 processors
Load average: 1.24, Mach factor: 6.75
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/simon/.rvm/usr/bin
PATH: ~/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/X11/bin
PATH: /Users/simon/.rvm/bin
## ----------- ##
## Core tests. ##
## ----------- ##
WOPR:~ $ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
WOPR:~ $ ls -l /usr/bin/gcc*
lrwxr-xr-x 1 root wheel 12 23 Sep 15:45 /usr/bin/gcc -> llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 22 23 Sep 09:36 /usr/bin/gcc-4.2 -> /usr/local/bin/gcc-4.2
WOPR:~ $ env
rvm_bin_path=/Users/simon/.rvm/bin
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
SHELL=/bin/bash
TMPDIR=/var/folders/nd/hp721c995qb6jsn1jyrkns2w0000gn/T/
Apple_PubSub_Socket_Render=/tmp/launch-NTBChR/Render
TERM_PROGRAM_VERSION=309
OLDPWD=/Users/simon/Code/space-booker
TERM_SESSION_ID=39550ECE-3B2F-4E6A-A9BC-5A34E38D5E55
GIT_EDITOR=subl -w
USER=simon
COMMAND_MODE=unix2003
__array_start=0
rvm_path=/Users/simon/.rvm
SSH_AUTH_SOCK=/tmp/launch-NOqzTi/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0:0
Apple_Ubiquity_Message=/tmp/launch-jtpDMn/Apple_Ubiquity_Message
escape_flag=1
rvm_prefix=/Users/simon
PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Users/simon/.rvm/bin
PWD=/Users/simon
EDITOR=/Users/simon/bin/subl -w
LANG=en_GB.UTF-8
_second=1
HISTIGNORE=&:ls:[bf]g:exit
HISTCONTROL=ignoredups
rvm_version=1.15.9 (stable)
SHLVL=1
HOME=/Users/simon
rvm_ruby_string=system
_first=0
LOGNAME=simon
rvm_delete_flag=0
install_flag=1
CC=/usr/local/bin/gcc-4.2
SECURITYSESSIONID=186a6
_=/usr/bin/env
WOPR:~ $ rvm install ruby-1.9.3-p194
Installing Ruby from source to: /Users/simon/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /Users/simon/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
Notes for Mac OS X 10.8.2, Xcode 4.5.
For MacRuby: Install LLVM first.
For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version "1.6.0_26"
For IronRuby: Install Mono >= 2.6
For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'
To use an RVM installed Ruby as default, instead of the system ruby:
rvm install 1.8.7 # installs patch 357: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems
rvm alias create default 1.8.7
And reopen your terminal windows.
Xcode and gcc:
Right now Ruby requires gcc to compile, but Xcode 4.2 and later no longer ship with gcc. Instead they ship with llvm-gcc (to which gcc is a symlink) and clang, neither of which are supported for building Ruby. Xcode 4.1 was the last version to ship gcc, which was /usr/bin/gcc-4.2.
Xcode 4.1 and earlier:
- Ruby will build fine.
Xcode 4.2 and later (including Command Line Tools for Xcode):
- If you have gcc-4.2 (and friends) from an earlier Xcode version, Ruby will build fine.
- If you don't have gcc-4.2, you have two options to get it:
* Install apple-gcc42 from Homebrew
* Install osx-gcc-installer
Homebrew:
If you are using Homebrew, you can install the apple-gcc42 and required libraries from homebrew/dupes:
brew update
brew tap homebrew/dupes
brew install autoconf automake apple-gcc42
rvm pkg install openssl
This can live side by side with an existing Xcode 4.2+ install or Command Line Tools for Xcode.
osx-gcc-installer:
If you don't use Homebrew, you can download and install osx-gcc-installer: https://github.com/kennethreitz/osx-gcc-installer.
Warning: Installing osx-gcc-installer on top of a recent Xcode is known to cause problems, so you must uninstall Xcode before installing osx-gcc-installer. Afterwards you may install Xcode 4.2+ or Command Line Tools for Xcode if you desire.
** NOTE: Currently, Node.js is having issues building with osx-gcc-installer. The only fix is to install Xcode over osx-gcc-installer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment