VlogUp

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?

6

2 Answers

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

1

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

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobmxuZWaFdX%2BOp6psZZKWwKl51pqdZqafYsC2r8dmnaKklWK8s3nDoqmem6Skv7p5xKupqKo%3D

Carisa Kissane

Update: 2024-05-17