2016-01-06 63 views
0

我想在我的Mac OS 10.10.3安装NS3,当我输入./download.py我得到了以下信息:如何解决权限NS3汞

Updating ns-3 branch 
=> hg --cwd ns-3-dev pull -u 
not trusting file /Users/username/Documents/ns-3-allinone/ns-3-dev/.hg/hgrc from untrusted user username, group staff 
not trusting file /Users/username/Documents/ns-3-allinone/ns-3-dev/.hg/hgrc from untrusted user username, group staff 
abort: repository default not found! 
Traceback (most recent call last): 
    File "./download.py", line 242, in <module> 
    sys.exit(main()) 
    File "./download.py", line 198, in main 
    ns3_dir = get_ns3(options.ns3_branch) 
    File "./download.py", line 29, in get_ns3 
    run_command(['hg', '--cwd', ns3_dir, 'pull', '-u']) 
    File "/Users/username/Documents/ns-3-allinone/util.py", line 25, in run_command 
    raise CommandError("Command %r exited with code %i" % (argv, retval)) 
util.CommandError: Command ['hg', '--cwd', 'ns-3-dev', 'pull', '-u'] exited with code 255 

我不知道如何激活权限ns3 hg。

回答

0

为避免你的问题,我认为你需要把:

[trusted] 
users = root 
/Users/username/Documents/ns-3-allinone/ns-3-dev/.hg/hgrc文件

,这应该工作。

有关其他信息,请阅读help on trust in Mercurial并确保您设置了正确的信任设置。