我是靠谱客的博主 炙热饼干,最近开发中收集的这篇文章主要介绍ubuntu16.04 安装 omnet - 5.1,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1、官网下载 omnet - 5.1

       https://omnetpp.org/download/old

2、配置源,添加阿里源

sudo vim /etc/apt/sources.list
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
#deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
#deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
#deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
#deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
#deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
sudo apt-get update
# 更新软件列表

3、安装依赖库

sudo apt-get install build-essential gcc g++ bison flex perl qt5-default tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-3.0-0
sudo apt-get install libopenscenegraph-dev openscenegraph-plugin-osgearth libosgearth-dev
sudo apt-get install openmpi-bin libopenmpi-dev

4、配置安装 omnet - 5.1

(1)添加环境变量

sudo vim ~/.bashrc
# 在最后添加
export PATH=$PATH:/home/....../omnetpp-5.1/bin
source ~/.bashrc
# 使环境变量生效

(2)编译安装

cd omnetpp-5.1/
./configure
# ./configure WITH_OSG=no
# ./configure WITH_TKENV=no WITH_QTENV=no
make

(3)添加快捷方式,没必要

make install-menu-item
# 安装菜单栏启动项
make install-desktop-icon
# 安装桌面快捷方式

(4)启动

omnetpp

 

最后

以上就是炙热饼干为你收集整理的ubuntu16.04 安装 omnet - 5.1的全部内容,希望文章能够帮你解决ubuntu16.04 安装 omnet - 5.1所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(57)

评论列表共有 0 条评论

立即
投稿
返回
顶部