Mini-NDN 安装

1. git clone https://github.com/named-data/mini-ndn

2. ./install.sh

报错1:Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 380, in get_ppa_info
    ret = get_ppa_info_from_lp(user, ppa)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 110, in get_ppa_info_from_lp
    return get_info_from_lp(lp_url)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 104, in get_info_from_lp
    return get_info_from_https(lp_url, True)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 96, in get_info_from_https
    data = func(lp_url=url, accept_json=accept_json, retry_delays=retry_delays)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 138, in _get_https_content_py3
    lp_page = urllib.request.urlopen(request,
  File "/usr/lib/python3.8/urllib/request.py", line 209, in urlopen
    raise ValueError('SSL support not available')
ValueError: SSL support not available

解决:How to upgrade OpenSSL 1.1.0 to 1.1.1 in Ubuntu 18.04? - Ask Ubuntuhttps://askubuntu.com/questions/1102803/how-to-upgrade-openssl-1-1-0-to-1-1-1-in-ubuntu-18-04/1102966#1102966

报错1.1 openssl: symbol lookup error: openssl: undefined symbol: EVP_mdc2, version OPENSSL_1_1_0 

解决 1.1 sudo apt-get upgrade openssl  2. export LD_LIBRARY_PATH="/usr/local/lib"

报错2:fatal: unsafe repository ('/home/xxx/Downloads/mini-ndn/dl/mininet-wifi' is owned by someone else) To add an exception for this directory, call:

 git config --global --add safe.directory /home/xxx/Downloads/mini-ndn/dl/mininet-wifi

暂时解决方案:

  • --no-wifi跳过 Mininet-WiFi 依赖。目前 Mininet-WiFi 仅适用于 Ubuntu,因此在其他发行版上安装时必须指定此选项。

3. sudo python examples/mnndn.py

报错1:Traceback (most recent call last):
           File "examples/mnndn.py", line 24, in <module>
           from mininet.log import setLogLevel, info
           ImportError: No module named mininet.log

解决1: sudo python3 examples/mnndn.py

报错2:FileNotFoundError: [Errno 2] No such file or directory: 'mn'

解决2:sudo apt install mininet

4. 最后结果

Using topology file /usr/local/etc/mini-ndn/default-topology.conf
*** Creating network
*** Adding controller
*** Adding hosts:
a b c d 
*** Adding switches:

*** Adding links:
(10ms delay) (10ms delay) (a, b) (10ms delay) (10ms delay) (a, c) (10ms delay) (10ms delay) (b, d) 
*** Configuring hosts
a b c d 
*** Starting controller
c0 
*** Starting 0 switches

Starting NFD on nodes


Starting NLSR on nodes
*** Starting CLI:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值