Skip to main content

Installing Ruby 1.8.7 on Mountain Lion with rbenv

Trying to build ruby-1.8.7 with rbenv on Mountain Lion and getting something similar to:

tcltklib.c:9862: error: expected ‘;’ before ‘event’
 You need to install XQuartz first and then use the following CPPFLAGS evn-var. (Also won't hurt to throw proper readline support in there while we are at it (brew install readline first):
CPPFLAGS=-I/opt/X11/include/ RUBY_CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 1.8.7-p374

Hope that helps you. If anything is a future reference point to myself :P

Comments

Popular posts from this blog

Japan

THE BROKEN TORII on the SHORES OF LAKE HARUNA, JAPAN Originally uploaded by Okinawa Soba

Japan

Shinkansen Originally uploaded by Jaako I really want to visit Japan some day. It's a country and culture that has always fascinated me.