gcc-4.4 -c -g -O2 -DNDEBUG -DUSE_SHM -DHAVE_UNISTD_H=1 -I. -I/home/akhil/ns-allinone-2.35/include -I/home/akhil/ns-allinone-2.35/include -I/home/akhil/ns-allinone-2.35/include -I/include otcl.c
make: gcc-4.4: Command not found
Makefile:91: recipe for target 'libotcl.a' failed
make: *** [libotcl.a] Error 127
otcl-1.14 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems发布于 2018-04-11 13:45:49
当您想要添加额外的协议时,"ns2“通常是由源代码构建的。所有~300个补丁(额外协议) https://drive.google.com/drive/folders/0B7S255p3kFXNZ2lWZDBRSW40Q00?usp=sharing
‘’ns 2.35‘Ubuntu 17.10例:sudo apt install g++-5→,即不迟于g++-5 (<=5.4)。注:您可以有任意数量的gcc版本,安装在同一时间。
tar xvf ns-allinone-2.35_gcc5.tar.gz // 2014 - 2017 update → →→https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
export CC=gcc-5 CXX=g++-5 && ./install
// if Ubuntu 16.04, the build command is './install' only
cd ns-2.35/
sudo make install~2500模拟https://drive.google.com/drive/folders/0B7S255p3kFXNSmRYb2lGcDRUdWs?usp=sharing
发布于 2018-04-11 10:54:37
这是包装好的。打包意味着不需要编译它。有存储库中的2.35版本。
只需运行sudo apt-get install ns2。
采取的规则,首先搜索二进制包,快照,Flatpaks,只有当他们没有找到-编译。
https://askubuntu.com/questions/1023978
复制相似问题