Skip to content

Instantly share code, notes, and snippets.

@darkuncle
Created June 12, 2013 20:24
Show Gist options
  • Save darkuncle/5768795 to your computer and use it in GitHub Desktop.
Save darkuncle/5768795 to your computer and use it in GitHub Desktop.
in which OS X is an unsuitable platform for development.
[sfrancis@southwatch:...src/dev/deployment]$ cap deploy:setup
rbenv: version `ree-1.8.7-2012.02' is not installed
rbenv: version `ree-1.8.7-2012.02' is not installed
[sfrancis@southwatch:...src/dev/deployment]$ which ruby
/Users/sfrancis/.rbenv/shims/ruby
[sfrancis@southwatch:...src/dev/deployment]$ ruby --version
rbenv: version `ree-1.8.7-2012.02' is not installed
rbenv: version `ree-1.8.7-2012.02' is not installed
[sfrancis@southwatch:...src/dev/deployment]$ cat .ruby-gemset
deployment
[sfrancis@southwatch:...src/dev/deployment]$ cat .ruby-version
ree-1.8.7-2012.02
[sfrancis@southwatch:...src/dev/deployment]$ rbenv install ree-1.8.7-2012.02
ERROR: This package must be compiled with GCC, but ruby-build couldn't
find a suitable `gcc` executable on your system. Please install GCC
and try again.
DETAILS: Apple no longer includes the official GCC compiler with Xcode
as of version 4.2. Instead, the `gcc` executable is a symlink to
`llvm-gcc`, a modified version of GCC which outputs LLVM bytecode.
For most programs the `llvm-gcc` compiler works fine. However,
versions of Ruby older than 1.9.3-p125 are incompatible with
`llvm-gcc`. To build older versions of Ruby you must have the official
GCC compiler installed on your system.
TO FIX THE PROBLEM: Install the official GCC compiler using these
packages: https://github.com/kennethreitz/osx-gcc-installer/downloads
You will need to install the official GCC compiler to build older
versions of Ruby even if you have installed Apple's Command Line Tools
for Xcode package. The Command Line Tools for Xcode package only
includes `llvm-gcc`.
BUILD FAILED
[sfrancis@southwatch:...src/dev/deployment]$ which rvm
rvm not found
[sfrancis@southwatch:...src/dev/deployment]$ brew update
Initialized empty Git repository in /usr/local/.git/
remote: Counting objects: 116138, done.
remote: Compressing objects: 100% (54549/54549), done.
remote: Total 116138 (delta 80104), reused 94075 (delta 60613)
Receiving objects: 100% (116138/116138), 18.97 MiB | 2.66 MiB/s, done.
Resolving deltas: 100% (80104/80104), done.
From https://github.com/mxcl/homebrew
* [new branch] gh-pages -> origin/gh-pages
* [new branch] go -> origin/go
* [new branch] master -> origin/master
* [new branch] superwip -> origin/superwip
* [new branch] versions -> origin/versions
HEAD is now at 387a700 Rename variables for clarity
Already up-to-date.
[sfrancis@southwatch:...src/dev/deployment]$ brew tap homebrew/dupes
Cloning into '/usr/local/Library/Taps/homebrew-dupes'...
remote: Counting objects: 903, done.
remote: Compressing objects: 100% (494/494), done.
remote: Total 903 (delta 496), reused 800 (delta 409)
Receiving objects: 100% (903/903), 157.34 KiB, done.
Resolving deltas: 100% (496/496), done.
Tapped 41 formula
[sfrancis@southwatch:...livingsocial/src/dev/deployment]$ brew install apple-gcc42
==> Downloading http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg
######################################################################## 100.0%
==> Caveats
NOTE:
This formula provides components that were removed from XCode in the 4.2
release. There is no reason to install this formula if you are using a
version of XCode prior to 4.2.
This formula contains compilers built from Apple's GCC sources, build
5666.3, available from:
http://opensource.apple.com/tarballs/gcc
All compilers have a `-4.2` suffix. A GFortran compiler is also included.
==> Summary
🍺 /usr/local/Cellar/apple-gcc42/4.2.1-5666.3: 104 files, 75M, built in 17 seconds
[sfrancis@southwatch:...src/dev/deployment]$ sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2
Password:
[sfrancis@southwatch:...src/dev/deployment]$ CC=/opt/local/bin/gcc-apple-4.2 rvm install ree-1.8.7-2012.02 --enable-shared --without-tk --without-tcl
zsh: command not found: rvm
[sfrancis@southwatch:...livingsocial/src/dev/deployment]$ brew install rvm
Error: No available formula for rvm
[sfrancis@southwatch:...livingsocial/src/dev/deployment]$ rbenv install ree-1.8.7-2012.02
Downloading ruby-enterprise-1.8.7-2012.02.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/8d086d2fe68a4c57ba76228e97fb3116
Installing ruby-enterprise-1.8.7-2012.02...
BUILD FAILED
Inspect or clean up the working tree at /var/folders/jr/kzt0lgyj6px331xl2phffw780000gq/T/ruby-build.20130612131637.21410
Results logged to /var/folders/jr/kzt0lgyj6px331xl2phffw780000gq/T/ruby-build.20130612131637.21410.log
Last 10 log lines:
x ruby-enterprise-1.8.7-2012.02/rubygems/lib/rubygems/commands/unpack_command.rb
x ruby-enterprise-1.8.7-2012.02/rubygems/lib/rubygems/commands/update_command.rb
x ruby-enterprise-1.8.7-2012.02/rubygems/lib/rubygems/commands/which_command.rb
x ruby-enterprise-1.8.7-2012.02/rubygems/lib/rbconfig/datadir.rb
x ruby-enterprise-1.8.7-2012.02/rubygems/hide_lib_for_update/note.txt
x ruby-enterprise-1.8.7-2012.02/rubygems/bin/gem
x ruby-enterprise-1.8.7-2012.02/rubygems/bin/update_rubygems
/var/folders/jr/kzt0lgyj6px331xl2phffw780000gq/T/ruby-build.20130612131637.21410/ruby-enterprise-1.8.7-2012.02 /var/folders/jr/kzt0lgyj6px331xl2phffw780000gq/T/ruby-build.20130612131637.21410 ~/livingsocial/src/dev/deployment
*** ERROR: Ruby is not installed ***
The Ruby Enterprise Edition installer is written in Ruby. This source tarball bundles precompiled versions of Ruby for many platforms for the purpose of running this installer, but unfortunately we did not include a precompiled Ruby binary for the current platform. So please install Ruby manually, then run this installer again.
[sfrancis@southwatch:...src/dev/deployment]$ cd
[sfrancis@southwatch:~]$ rbenv install ree-1.8.7-2012.02
Downloading ruby-enterprise-1.8.7-2012.02.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/8d086d2fe68a4c57ba76228e97fb3116
Installing ruby-enterprise-1.8.7-2012.02...
BUILD FAILED
Inspect or clean up the working tree at /var/folders/jr/kzt0lgyj6px331xl2phffw780000gq/T/ruby-build.20130612131702.21518
Results logged to /var/folders/jr/kzt0lgyj6px331xl2phffw780000gq/T/ruby-build.20130612131702.21518.log
Last 10 log lines:
/usr/include/tkDecls.h:1420: error: expected declaration specifiers or '...' before 'XColor'
/usr/include/tkDecls.h:1448: error: expected declaration specifiers or '...' before 'Pixmap'
/usr/include/tkDecls.h:1524: error: expected ')' before '*' token
/usr/include/tkDecls.h:1621: error: expected declaration specifiers or '...' before 'Drawable'
/usr/include/tkDecls.h:1656: error: expected ')' before '*' token
/usr/include/tkDecls.h:1661: error: expected ')' before '*' token
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before 'XColor'
make[1]: *** [stubs.o] Error 1
make: *** [all] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment