[ndnSIM] ndnSIM example crashes on MAC

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Thu May 4 19:34:47 PDT 2017


Hi Anil,

that has happened to me too and it seems to be related to waf. I am not sure why it fails, but the solution that worked for me was to do a fresh clone of the repo from github and recompile.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On May 4, 2017, at 10:46 AM, Anil Jangam <anilj.mailing at gmail.com> wrote:
> 
> 
> Hi Alex,
> 
> Using macOS with MacPorts, I was able to compile ndnSIM on Mac OSX (El Captain) 10.11.6; however, it crashes while running an example. Below is the stack trace. 
> 
> I ran the confogure stage with and without python (i.e. ./waf configure --disable-python --enable-examples and using macport specific python version). Can you point out to specific reason why its failing?
> 
> anjangam:ns-3 anjangam$ 
> anjangam:ns-3 anjangam$ ./waf --run=ndn-simple --command-template="gdb %s"
> Waf: Entering directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'
> Waf: Leaving directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'
> Build commands will be stored in build/compile_commands.json
> 'build' finished successfully (2.293s)
> Traceback (most recent call last):
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point
>     run_commands()
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 171, in run_commands
>     run_command('shutdown')
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 160, in run_command
>     ctx.execute()
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 92, in execute
>     self.recurse([os.path.dirname(g_module.root_path)])
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse
>     user_function(self)
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/wscript", line 937, in shutdown
>     visualize=Options.options.visualize)
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/wutils.py", line 215, in run_program
>     return run_argv(execvec, env, cwd=cwd)
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/wutils.py", line 132, in run_argv
>     retval = subprocess.Popen(argv, env=proc_env, cwd=cwd).wait()
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
>     errread, errwrite)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> 
> 
> /anil.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170504/45d45def/attachment.html>


More information about the ndnSIM mailing list