A begginer is confused by NS-3 on Mac platform

22 views
Skip to first unread message

Lance

unread,
Mar 28, 2026, 6:43:16 AM (4 days ago) Mar 28
to ns-3-users
I install the ns-3 by homebrew, then the install guide seemed to finish.

How do I test ns-3 if is installed correctly?
And how to add the ns-3 into a example project?

ns-3: 3.47 version
Platform: Macbook m5 with latest MacOS

Gabriel Ferreira

unread,
Mar 28, 2026, 11:47:38 AM (4 days ago) Mar 28
to ns-3-users
./ns3 configure --enable-examples --enable-tests && ./test.py

Gabriel Ferreira

unread,
Mar 28, 2026, 11:51:08 AM (4 days ago) Mar 28
to ns-3-users
Forgot the links. You're looking at the requirements documents most likely. 

And if you want an abundance of details

Tommaso Pecorella

unread,
Mar 28, 2026, 8:20:59 PM (3 days ago) Mar 28
to ns-3-users
If you mean that you did install it with "brew install ns-3", then there are some additional quirks.

While the homebrew package should work, I have no idea whatsoever about *where* it installs it.
I know there's something in /opt/homebrew/Cellar/ns-3, but beat me if I know where the sources are (if they're there at all).

Best suggestion: use the links posted by Gabriel and follow the instructions. The required packages can be installed using homebrew, of course.
As a side note, homebrew installs gcc as a ns-3 dependency, which is not at all required (if you have Xcode installed).
Reply all
Reply to author
Forward
0 new messages