[ndnSIM] A compiling problem

李孟涵 limenghan1101 at gmail.com
Fri May 3 09:13:13 PDT 2013


Hi all,

    I downloaded ndnSIM code from github without making any changes. But I
can't build ndnSIM successfully. When I used waf to compile ndnSIM code,
there were following error messages appeared.

parallels at parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf
configure --enable-examples --enable-ndn-plugins=topology,mobility
Traceback (most recent call last):
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
line 97, in waf_entry_point
    run_commands()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
line 149, in run_commands
    parse_options()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
line 127, in parse_options
    Context.create_context('options').execute()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py",
line 134, in execute
    super(OptionsContext,self).execute()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 128, in recurse
    user_function(self)
  File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options
    opt.recurse('src')
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 128, in recurse
    user_function(self)
  File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options
    opt.recurse(module, mandatory=False)
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 128, in recurse
    user_function(self)
  File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 15, in options
    opt.tool_options('boost', tooldir=["waf-tools"])
AttributeError: 'OptionsContext' object has no attribute 'tool_options'
parallels at parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf
configure
Traceback (most recent call last):
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
line 97, in waf_entry_point
    run_commands()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
line 149, in run_commands
    parse_options()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
line 127, in parse_options
    Context.create_context('options').execute()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py",
line 134, in execute
    super(OptionsContext,self).execute()
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 128, in recurse
    user_function(self)
  File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options
    opt.recurse('src')
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 128, in recurse
    user_function(self)
  File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options
    opt.recurse(module, mandatory=False)
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 122, in recurse
    wscript_module=load_module(node.abspath())
  File
"/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
line 281, in load_module
    exec(compile(code,path,'exec'),module.__dict__)
  File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 4, in <module>
    import Logs
ImportError: No module named Logs

  If above errors are due to lacking necessary patches or other reasons?
  Look forward to your reply!Thanks a lot~

Best regards,
-- 
Menghan Li
Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, China.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130504/ca04ef3d/attachment.html>


More information about the ndnSIM mailing list