[ndnSIM] A compiling problem
Alex Afanasyev
alexander.afanasyev at ucla.edu
Fri May 3 11:07:18 PDT 2013
Hi Menghan,
Thanks for catching the problem! Yesterday I was updating NS-3 base to the latest version (based on NS-3.17 release candidate / developer head) and forgot to push out necessary changes to ndnSIM.
If you re-clone everything again, the error should disappear and the code should compile successfully.
---
Alex
On May 3, 2013, at 9:13 AM, 李孟涵 <limenghan1101 at gmail.com> wrote:
> 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.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
More information about the ndnSIM
mailing list