在从github clone下来到ns-3/src/ndnSIM时忽略了两个文件的克隆失败
分别是NFD和ndn-cxx
提示如下:
Cloning into '/mnt/c/Users/29538/ndnsim/ns-3/src/ndnSIM/NFD'...
fatal: unable to access 'https://github.com/named-data-ndnSIM/NFD/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/named-data-ndnSIM/NFD' into submodule path '/mnt/c/Users/29538/ndnsim/ns-3/src/ndnSIM/NFD' failed
Failed to clone 'NFD'、Retry scheduled
Cloning into '/mnt/c/Users/29538/ndnsim/ns-3/src/ndnSIM/ndn-cxx'...
fatal: unable to access 'https://github.com/named-data-ndnSIM/ndn-cxx/': Failed to connect to github.com port 443: Connection refused
fatal: clone of 'https://github.com/named-data-ndnSIM/ndn-cxx' into submodule path '/mnt/c/Users/29538/ndnsim/ns-3/src/ndnSIM/ndn-cxx' failed
Failed to clone 'ndn-cxx'、Retry scheduled
Cloning into '/mnt/c/Users/29538/ndnsim/ns-3/src/ndnSIM/NFD'...
fatal: unable to access 'https://github.com/named-data-ndnSIM/NFD/': Failed to connect to github.com port 443: Connection refused
fatal: clone of 'https://github.com/named-data-ndnSIM/NFD' into submodule path '/mnt/c/Users/29538/ndnsim/ns-3/src/ndnSIM/NFD' failed
Failed to clone 'NFD' a second time, aborting
解决方案为:
在ndnsim/ns-3/src/ndnsim 下
git clone --recursive https://github.com/named-data-ndnSIM/NFD.git
git clone --recursive https://github.com/named-data-ndnSIM/ndn-cxx.git
或者
git clone --recursive git://github.com/named-data-ndnSIM/NFD.git
git clone --recursive git://github.com/named-data-ndnSIM/ndn-cxx.git