首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ubuntu中的NS2编译错误

ubuntu中的NS2编译错误
EN

Ask Ubuntu用户
提问于 2018-04-11 10:30:49
回答 2查看 2.1K关注 0票数 0
代码语言:javascript
复制
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
EN

回答 2

Ask Ubuntu用户

发布于 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版本,安装在同一时间。

代码语言:javascript
复制
tar xvf ns-allinone-2.35_gcc5.tar.gz           // 2014 - 2017 update  → →

https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing

代码语言:javascript
复制
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

票数 1
EN

Ask Ubuntu用户

发布于 2018-04-11 10:54:37

这是包装好的。打包意味着不需要编译它。有存储库中的2.35版本

只需运行sudo apt-get install ns2

采取的规则,首先搜索二进制包,快照,Flatpaks,只有当他们没有找到-编译。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1023978

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档