I have begun to make a network simulation using ns-3.39. However, after installation, I met a problem to run a simulation. When I try to run first.cc in the tutorial folder, the terminal displays:
./first.cc: line 1: /bin: Is a directory
./first.cc: line 2: CMakeLists.txt: command not found
...
./first.cc: line 11: CMakeLists.txt: command not found
./first.cc: line 31: syntax error near unexpected token '"FirstScriptExample"'
./first.cc: line 31: 'NS_LOG_COMPONENT_DEFINE("FirstScriptExample");'
and then expires the code.
I checked every folder of ns3 but there exists 'CMakeLists.txt' file in the every folder. And I followed the process to 4.3.2 in the link below: https://www.nsnam.org/docs/manual/html/working-with-cmake.html
But nothing changed.