ns-2 and its dependencies don't work out of the box for MacOSX. So I've spent some time making some patches to make it work under Mac OS X Panther (10.3).
The following patches require the following:
/Library/Frameworks/Tk.framework/Tkbecause the packages from tcl.sourceforge.net don't seem to do this last vital step.:
ln -s /Library/Frameworks/Tk.framework/Tk /usr/lib/libtk8.4.dylib
ns, then you have definitely fallen into this trap. Make sure you do not have
/sw/binin your PATH environment.
ranlib /usr/local/lib/libtclcl.aand run
Here are some other people who have MacOSX versions. I haven't tried their versions, but may be better than mine. Who knows? :)
Note that I can't help you with any simulation enquiries as I don't use ns-2 often. I only ported it to MacOSX as part of my work at Fraser Research.
comments and suggestions please contact Alastair Tse <email@example.com>.