From: Rob Sanheim Date: 2008-02-21T13:04:44+09:00 Subject: Re: rubynode won't build on Leopard Ruby On Tue, Feb 19, 2008 at 1:41 PM, Dominik Bathon wrote: > Hi Rob, > > > On Tue, 19 Feb 2008 04:54:15 +0100, Rob Sanheim wrote: > > > After switching to root and setting the ruby source dir env var again, > > I get this new error when trying to do setup.rb: > > > > ares:Downloads root# ruby rubynode-0.1.5/setup.rb > > ---> lib > > <--- lib > > ---> ext > > ---> ext/rubynode_ext > > /opt/local/bin/ruby > > /Users/rsanheim/Downloads/rubynode-0.1.5/ext/rubynode_ext/extconf.rb > > ==================== ERROR ===================== > > /opt/local/lib/ruby/1.8/i686-darwin9.0.0/node.h > > is different from > > /Users/rsanheim/Downloads/ruby-1.8.6-p110/node.h > > That seems to be the problem. macports probably somehow modifies the > node.h it installs. Could you diff the two files? > > As a workaround you could just copy > /opt/local/lib/ruby/1.8/i686-darwin9.0.0/node.h to > /Users/rsanheim/Downloads/ruby-1.8.6-p110/node.h and try to install the > gem again: > > RUBY_SOURCE_DIR="/Users/rsanheim/Downloads/ruby-1.8.6-p110" gem install > rubynode > > But I still would really like to know what the difference between the two > files is. > > Thanks. > > Dominik Hi Dominik I posted the diff to pastie here: http://pastie.caboo.se/155179 I was finally able to get it to install, though I had to switch to root user, set the env var, then do 'gem install'...which installed into the macports rubygem context like I wanted. I couldn't figure out a way to set the required env var _and_ run gem install via sudo only. - Rob