From: Timothy Barnes Date: 2011-07-09T13:38:46+09:00 Subject: Re: Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard --000e0cd22fac801df904a79b8603 Content-Type: text/plain; charset=ISO-8859-1 kou, I tried port install cairo and opt/local/include was created but no cairo.h Timothy On Sat, Jul 9, 2011 at 12:26 AM, Timothy Barnes wrote: > Here are the instructions that I followed (from green shoes github site): > Via Homebrew > > (untested, but probably the recommended approach for Intel Macs) > > This approach would be basically as per the Macports instructions, but > using > the equivalent Homebrew commands to > install Ruby 1.9 and GTK2. So, something like: > > 1. Install Homebrew > 2. Install Ruby 1.9 brew install ruby (Alternatively, you may want to > use RVM to install Ruby1.9) > 3. Install GTK2 brew install gtk+ (This should pull in all other > dependencies such as Cairo) > 4. You may then have to update the Rubygems version if it isn't greater > than 1.3.7 (updating shouldn't do any harm anyway): sudo gem update > --system > 5. Install Ruby bindings: sudo gem install cairo -v=1.10.0 and sudo gem > install gtk2 -v=0.90.5 > 6. Install the Green Shoes gem: sudo gem install green_shoes > > > > I belive gtk+ is supposed to install cairo. I tried step 5 again tonight > and > now I get errors. > > > > > > On Sat, Jul 9, 2011 at 12:20 AM, Kouhei Sutou wrote: > > > Hi, > > > > In > > "Re: Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow > > Leopard" on Sat, 9 Jul 2011 13:07:34 +0900, > > Timothy Barnes wrote: > > > > > I can't find that directory at all. is it ~/opt/local/......? much less > > the > > > file > > > > How did you install cairo 1.10.0? > > rcairo needs to find cairo.pc for detecting include path of > > cairo. cairo.pc has the information. > > > > Thanks, > > -- > > kou > > > > > --000e0cd22fac801df904a79b8603--