On 13.01.2016 06:52 PM, David Laxer wrote:
Yep. It’s getting the Macports one first:
David-Laxers-MacBook-Pro:~ davidlaxer$ whereis g++ /usr/bin/g++ David-Laxers-MacBook-Pro:~ davidlaxer$ which g++ /opt/local/bin/g++
And that's exactly the problem. You'll need to edit PATH to (temporarily) to not prefer the MacPorts prefix.
echo "$PATH"
With this information, re-arrange the values like so:
PATH=/usr/bin:/usr/sbin:...:/opt/local/bin:/opt/local/sbin ./macbuild.sh
Where "..." means anything you have in-between. If you also have /opt/local/libexec/gnubin in there, move it before /opt/local/bin.
Mihai