| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1809 人关注过本帖
标题:求助,Ubuntu如何配置NS2仿真
只看楼主 加入收藏
Link2Points
Rank: 4
等 级:业余侠客
威 望:6
帖 子:46
专家分:286
注 册:2020-8-17
结帖率:100%
收藏
已结贴  问题点数:5 回复次数:3 
求助,Ubuntu如何配置NS2仿真
求助,需要能快速便捷的方法配置ns2仿真的教程。

ns2-allinone-2.35.tar.gz包已下好了,但是解压后./install报错
图片附件: 游客没有浏览图片的权限,请 登录注册


输入sudo apt-get install build-essential autoconf automake libxmu-dev获取NS2安装依赖的包,然后下了一个下午才11%
图片附件: 游客没有浏览图片的权限,请 登录注册


求助,需要能快速便捷的方法或配置教程。心累。
搜索更多相关主题的帖子: Ubuntu install 教程 配置 仿真 
2020-09-16 20:36
apull
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:三体星系
等 级:版主
威 望:216
帖 子:1506
专家分:9241
注 册:2010-3-16
收藏
得分:5 
换个源,更改/etc/apt/sources.list文件

deb https://mirrors.ustc. bionic main restricted universe multiverse
deb https://mirrors.ustc. bionic-updates main restricted universe multiverse
deb https://mirrors.ustc. bionic-backports main restricted universe multiverse
deb https://mirrors.ustc. bionic-security main restricted universe multiverse
deb https://mirrors.ustc. bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc. bionic main restricted universe multiverse
deb-src https://mirrors.ustc. bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc. bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc. bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc. bionic-proposed main restricted universe multiverse
2020-09-17 00:26
Link2Points
Rank: 4
等 级:业余侠客
威 望:6
帖 子:46
专家分:286
注 册:2020-8-17
收藏
得分:0 
回复 2楼 apull
感谢

摸鱼中ˋ( ° ▽、° )
2020-09-17 10:15
Link2Points
Rank: 4
等 级:业余侠客
威 望:6
帖 子:46
专家分:286
注 册:2020-8-17
收藏
得分:0 
整理了下安装配置ns2的过程:

1、在https://下载解压ns2-allinone-2.35.tar.gz,如果觉得文件名太长,替换文件名mv ns2-allinone-2.35 ns
2、cd ns先修改gedit ns-2.35/linkstate/ls.h 中的 void eraseAll() { erase(baseMap::begin(), baseMap::end()); } 改为 void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
3、根据二楼版主的方法修改源
    阿里源
deb http://mirrors. bionic main restricted universe multiverse
deb http://mirrors. bionic-security main restricted universe multiverse
deb http://mirrors. bionic-updates main restricted universe multiverse
deb http://mirrors. bionic-proposed main restricted universe multiverse
deb http://mirrors. bionic-backports main restricted universe multiverse
deb-src http://mirrors. bionic main restricted universe multiverse
deb-src http://mirrors. bionic-security main restricted universe multiverse
deb-src http://mirrors. bionic-updates main restricted universe multiverse
deb-src http://mirrors. bionic-proposed main restricted universe multiverse
deb-src http://mirrors. bionic-backports main restricted universe multiverse
    清华源
deb https://mirrors.tuna.tsinghua. bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua. bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua. bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua. bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua. bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua. bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua. bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua. bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua. bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua. bionic-proposed main restricted universe multiverse
    然后更新
sudo apt-get update
sudo apt-get upgrade
4、sudo apt-get install build-essential autoconf automake libxmu-dev获取NS2安装依赖的包
5、./install安装
6、配置环境
gedit ~/.bashrc
根据文件所属路径配置
source ~/.bashrc
7、输入ns验证
如果是%则成功
如果显示如图
图片附件: 游客没有浏览图片的权限,请 登录注册

输入apt-get install ns2回车,输入y回车
然后再输入ns验证
图片附件: 游客没有浏览图片的权限,请 登录注册

成功,泪目

摸鱼中ˋ( ° ▽、° )
2020-09-17 11:07
快速回复:求助,Ubuntu如何配置NS2仿真
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.072971 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved