about ns-3.21

162 views
Skip to first unread message

Zinmar Myo

unread,
Jan 2, 2015, 12:13:41 AM1/2/15
to ns-3-...@googlegroups.com
Dear all,
I want to try my testing on ns3.21 which is issued later.
After downloading ns-allinone-3.21 from http://www.nsam.org, I find just ns-3.21 under the main root ns-allinone-3.21. In recent ns-3.20, netanim-3.103 ns-3.20 pybindgen-0.16.0.825 are found. Then, by changing to ns-3.20, I can build with build.py or bake or waf. However in ns-3.21, I found as follows when I use ls command
AUTHORS       Makefile       src          utils.py   waf.bat
CHANGES.html  README         test.py      utils.pyc  wscript
examples      RELEASE_NOTES  testpy.supp  VERSION    wutils.py
LICENSE       scratch        utils        waf        wutils.pyc
 I want to ask that how can I build ns-3.21. I made building ns3 by using waf. However the following error message is shown.
Waf: The wscript in '/cygdrive/d/myproject/workspace/ns-allinone-3.21/ns-3.21' is unreadable
Traceback (most recent call last):
  File "/cygdrive/d/myproject/workspace/ns-allinone-3.21/ns-3.21/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 87, in waf_entry_point
    set_main_module(Context.run_dir+os.sep+Context.WSCRIPT_FILE)
  File "/cygdrive/d/myproject/workspace/ns-allinone-3.21/ns-3.21/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 112, in set_main_module
    Context.g_module=Context.load_module(file_path)
  File "/cygdrive/d/myproject/workspace/ns-allinone-3.21/ns-3.21/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Context.py", line 281, in load_module
    exec(compile(code,path,'exec'),module.__dict__)
  File "/cygdrive/d/myproject/workspace/ns-allinone-3.21/ns-3.21/wscript", line 42, in <module>
    import cflags # override the build profiles from waf
ImportError: No module named cflags


Please, suggest me
Best Regards
Thank You

Tommaso Pecorella

unread,
Jan 2, 2015, 4:24:28 AM1/2/15
to ns-3-...@googlegroups.com
Hi,

it seems that your download was corrupted somehow.
Try again, and check that the following holds true:

AirTom:Downloads pecos$ md5 ns-allinone-3.21.tar.bz2 
MD5 (ns-allinone-3.21.tar.bz2) = b099fe267275bfd3806b08a7e386142f
AirTom:Downloads pecos$ ll ns-allinone-3.21.tar.bz2 
-rw-r--r--@ 1 pecos  staff  25770594 18 Sep 05:09 ns-allinone-3.21.tar.bz2
AirTom:Downloads pecos$ ls -l ns-allinone-3.21
total 40
-rw-r--r--@   1 pecos  staff   924 18 Sep 05:00 README
drwxr-xr-x   10 pecos  staff   340  2 Jan 10:20 bake
-rwxr-xr-x@   1 pecos  staff  5618 18 Sep 05:00 build.py
-rw-r--r--@   1 pecos  staff   563 18 Sep 05:00 constants.py
drwxr-xr-x@ 105 pecos  staff  3570  2 Jan 10:20 netanim-3.105
drwxr-xr-x@  24 pecos  staff   816  2 Jan 10:20 ns-3.21
drwxr-xr-x@  23 pecos  staff   782  2 Jan 10:20 pybindgen-0.17.0.876
-rw-r--r--@   1 pecos  staff   519 18 Sep 05:00 util.py
AirTom:Downloads pecos$ 


T.

Zinmar Myo

unread,
Jan 4, 2015, 11:40:03 PM1/4/15
to ns-3-...@googlegroups.com
Thanks Tommaso,
I will try again for downloading the zip file
Reply all
Reply to author
Forward
0 new messages