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
报错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: