Haneel Kumar Nagineni
Haneel Kumar Nagineni

Reputation: 21

NS3 bash: ./waf: No such file or directory error

charlie@charlie:~/Desktop/ns-allinone-3.36.1/ns-3.36.1$ ls
AUTHORS   build-support  CMakeLists.txt   doc       ns3               scratch  testpy.supp  VERSION
bindings  CHANGES.md     contrib          examples  README.md         src      utils
build     cmake-cache    CONTRIBUTING.md  LICENSE   RELEASE_NOTES.md  test.py  utils.py

charlie@charlie:~/Desktop/ns-allinone-3.36.1/ns-3.36.1$ ./waf
bash: ./waf: No such file or directory

Could someone help me out to understand why waf module is not installed in my directory?

Upvotes: 2

Views: 4945

Answers (2)

tla
tla

Reputation: 1004

waf build system was removed in version ns-3.36: https://github.com/nsnam/ns-3-dev-git/blob/master/CHANGES.md#changes-to-build-system-3

It is replaced by ns3 script which is a Python script providing an interface similar to waf. Most common commands such as ./waf configure and ./waf build are replaced with almost identical ./ns3 configure, ./ns3 build etc. Internally, however, CMake build system is used.

You can see the merge request which introduced the change here: https://gitlab.com/nsnam/ns-3-dev/-/merge_requests/460

Upvotes: 2

예준캉
예준캉

Reputation: 11

Try using the ./ns3 command instead of ./waf

Upvotes: 1

Related Questions