From: Dominik Bathon Date: 2008-02-20T03:41:17+09:00 Subject: Re: rubynode won't build on Leopard Ruby 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