설치 명령은 다음과 같다. 기본적인 저장소인 ns-3-allinone 이다.
wondoui-MacBook-Air:ns3 yarang$ hg clone http://code.nsnam.org/ns-3-allinone destination directory: ns-3-allinone requesting all changes adding changesets adding manifests adding file changes added 49 changesets with 69 changes to 7 files updating to branch default 7 files updated, 0 files merged, 0 files removed, 0 files unresolved wondoui-MacBook-Air:ns3 yarang$
기본 저장소에서 ns-3를 다운로드받은 후에 전체 파일의 다운로드를 실행한다.wondoui-MacBook-Air:ns-3-allinone yarang$ ls README constants.py download.py build.py dist.py util.py wondoui-MacBook-Air:ns-3-allinone yarang$ ./download.py # # Get NS-3 # Cloning ns-3 branch => hg clone http://code.nsnam.org/ns-3-dev ns-3-dev requesting all changes adding changesets adding manifests adding file changes added 7678 changesets with 35905 changes to 6040 files updating to branch default 2086 files updated, 0 files merged, 0 files removed, 0 files unresolved # # Get PyBindGen # Required pybindgen version: 0.15.0.795 Trying to fetch pybindgen; this will fail if no network connection is available. Hit Ctrl-C to skip. => bzr checkout -rrevno:795 https://launchpad.net/pybindgen pybindgen *** Did not fetch pybindgen; python bindings will not be available. # # Get NSC # Architecture (darwin) does not support NSC... skipping *** Did not fetch NSC; NSC will not be available. wondoui-MacBook-Air:ns-3-allinone yarang$
다운로드받은 파일을 확인하는 것은 ls명령으로 확인한다. 실제 ns-3용 소스들은 ns-3-dev 디렉토리에 다운로드가 완료되어있다.wondoui-MacBook-Air:ns-3-allinone yarang$ ls README constants.py dist.py ns-3-dev util.pyc build.py constants.pyc download.py util.py wondoui-MacBook-Air:ns-3-allinone yarang$ ls ns-3-dev/ AUTHORS VERSION scratch utils.py wutils.py CHANGES.html bindings src waf LICENSE doc test.py waf-tools README examples testpy.supp waf.bat RELEASE_NOTES ns3 utils wscript wondoui-MacBook-Air:ns-3-allinone yarang$





