From: "Timothy F." Date: 2012-04-09T00:17:39+09:00 Subject: Re: gem install ruby-opengl fails on os x lion, ruby-1.9.3-p125, Hmm, it seems I am having a conversation with myself :) Nevertheless, I am posting my solution here in case it helps anyone else. There were a gotchas here. Firstly, I was trying to install ruby-opengl using rvm, but rvm reportedly breaks gems with native code extensions on Xcode 4.2. So rvm had to be removed. Secondly, Apple removed gcc support or something (as far as I can tell) in Xcode 4.2, meaning gcc 4.2 had to be installed. I did this with homebrew: brew update brew tap homebrew/homebrew-dupes brew install apple-gcc42 Lastly I used rbenv instead of rvm (optional), and installed ruby 1.8.7, and finally 'gem install ruby-opengl' worked. -- Posted via http://www.ruby-forum.com/.