1,跟换下载源,通过系统软件:软件和更新
参考链接:https://blog.csdn.net/qq_38680752/article/details/102471356
注:自己不要手动更改文件,不然后续会有很多问题。
这里选择了ustc,通过中科大镜像。
2,按照NS3官网安装
官网链接:https://www.nsnam.org/wiki/Installation
3,环境配置过程中的问题记录
(1)GSL 安装失败,不使用802.11b models就没有关系,直接跳过
错误无法定位到包:原因是libgsl23只有18.04LTS版本才有
(2)无法定位包pip
解决办法:
sudo apt install python3-pip
4 安装过程参照之前的博客
5, 环境配置好可以安装ns-3.28
链接:https://blog.csdn.net/qq_31648921/article/details/109160748
5 安装eclipse
5.1 安装JDK
//创建文件夹
sudo mkdir /usr/lib/jvm
//切换
cd /usr/lib/jvm
//下载
sudo wget http://mirror.cnop.net/jdk/linux/jdk-8u112-linux-x64.tar.gz
cd /opt/jvm
sudo wget https://mirrors.tuna.tsinghua.edu.cn/eclipse/technology/epp/downloads/release/neon/3/eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz
//解压
sudo tar -zxvf jdk-8u112-linux-x64.tar.gz
//查看
larry@larry-VirtualBox:/usr/lib/jvm$ ls
eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz jdk-8u112-linux-x64.tar.gz
jdk1.8.0_112
//环境配置
//打开profile
sudo gedit /etc/profile
//在profile文件的最后添加:
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_112
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
//保存,退出
//使其立即生效:
source /etc/profile
//检查是否成功
larry@larry-VirtualBox:/usr/lib/jvm$ java -version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
profile文件
5.2安装eclipse
//解压到/usr/lib/目录下
larry@larry-VirtualBox:/usr/lib/jvm$ sudo mv eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz /usr/lib
larry@larry-VirtualBox:/usr/lib/jvm$ sudo mv eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz /usr/lib
larry@larry-VirtualBox:/usr/lib/jvm$ cd /usr/lib
larry@larry-VirtualBox:/usr/lib$ sudo tar -zxvf eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz
//配置启动快捷方式
sudo gedit /usr/share/applications/eclipse.desktop
//如果没有
cd /usr/share/applications
sudo touch eclipse.desktop
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/usr/lib/jvm/eclipse/icon.xpm
Exec=/usr/lib/jvm/eclipse/eclipse
Terminal=false
Categories=Development;IDE;Java
//暂时失败
快捷运行:
6 安装openflow
参照:https://blog.csdn.net/qq_31648921/article/details/110942103