I moved my macports installation temporarily to my home directory (sudo mv /opt/local ~/macports). Then I followed the instructions exactly as shown on the installation page (linked above). I only really ran into one problem with the installation. That was with the step:
brew install ros/fuerte/swig-wx
for some reason, my installation did not like the hyphen in the swig formula. I got this error:
swig-wx/usr/local/Library/Taps/ros-fuerte/swig-wx.rb:4: syntax errorTo fix the problem, I first had to rename the directory:
cd /usr/local/Library/Taps/ros-fuerte/The I edited the file:
mv swig-wx.rb swigwx.rb
vi /usr/local/Library/Taps/ros-fuerte/swigwx.rband removed the hyphen from the Swig-wx class. Then I repeated the homebrew install (this time without the hyphen):
brew install ros/fuerte/swigwxThe formula was still not right, so I had to do a manual install:
cd /Library/Caches/Homebrew/swigwx--gitI then resumed the ros installation process. Everything else worked fine. Here is my /usr/local/Library/Taps/ros-fuerte/swig-wx.rb file:
./configure
make
make install
require 'formula'
class SwigWx < Formula
homepage 'http://www.swig.org'
url 'git://github.com/wg-debs/swig-wx.git', {:using => :git, :tag => 'upstream/1.3.29'}
def install
ENV.universal_binary
system "./configure"
system "make"
system "make install"
end
end
thanks for this!
ReplyDeleteThis was gorgeous! Thanks!
ReplyDelete