Ubuntu 16.04LTS 下omnetpp的安裝程序
- 1. 概述
- 2. 相關下載鏈接
- 3. omnetpp 5.5.1 安裝程序
- 3.1 必備軟體包安裝
- 3.2 omnetpp的下載和安裝
- 3. inet 及 nesting 的匯入程序
- 3.1 inet 的下載
- 3.2 nesting的下載
- 3.3 inet和nesting的匯入程序
1. 概述
本人主要需要用到omnetpp對時間敏感網路(Time-Sensitive network, TSN)進行仿真,需要用到inet框架和nesting模型,由于之前在win10上仿真頻繁報錯,準備采用linux進行實驗,
還是采用linux進行開發BUG比較少,不會有一些蜜汁問題,用windows開發遲早走火入魔
nesting模型:
- NeSTiNg is a simulation model for Time-Sensitive Networking (TSN).
- It uses the INET Framework and enhances it by TSN-capable components.
- The model was initially developed by a group of students during a curricular project and is continously extended at the Distributed Systems group of IPVS, University of Stuttgart.
nesting論文鏈接:鏈接: NeSTiNg-A Network Simulator for Time-sensitive Networking.
2. 相關下載鏈接
omnetpp 5.5.1 linux版:鏈接: omnetpp 5.5.1.
inet 4.1.2版本:鏈接: inet 4.1.2.
nesting模型:鏈接:nesting.
3. omnetpp 5.5.1 安裝程序
安裝程序按照官方的檔案進行:鏈接: OMNeT++Installation Guide.
3.1 必備軟體包安裝
支持版本:Ubuntu 16.04 LTS or 18.04 LTS 在 Intel 64-bit 平臺上
1.更新可用軟體包
$ sudo apt-get update;
2.安裝必備軟體包
這一句長度比較長
$ sudo apt-get install build-essential gcc g++ bison flex perl python python3 qt5-default libqt5opengl5-dev tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-3.0-0
為了使用Qtenv的3D功能,安裝OpenSceneGraph 和 sgEarth
$ sudo add-apt-repository ppa:ubuntugis/ppa
$ sudo apt-get update
$ sudo apt-get install openscenegraph-plugin-osgearth libosgearth-dev
為了使用并行仿真,安裝 MPI
$ sudo apt-get install openmpi-bin libopenmpi-dev
安裝 PCAP
$ sudo apt-get install libpcap-dev
3.圖形安裝
在命令列進入Synaptic
$ sudo synaptic
依次搜索下列軟體并且點擊“標記全部可升級軟體包”
| 要求 | 軟體內容 |
|---|---|
| 必須 | 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 |
| 建議 | libopenscenegraph-dev, openscenegraph-plugin-osgearth, li-bosgearth-dev, openmpi-bin, libopenmpi-dev |

3.2 omnetpp的下載和安裝
首先進行omnetpp 5.5.1版本的下載
omnetpp 5.5.1 linux版:鏈接: omnetpp 5.5.1.
安裝步驟如下:
1.設定環境變數
$ gedit ~/.bashrc
打開檔案后在最后一行添加
//注意自己檔案存放的路徑
$ export PATH=$PATH:/home/omnetpp-5.5.1/bin
保存并關閉
2.安裝配置omnetpp
進入omnetpp目錄,命令列輸入
$ ./configure
成功后會出現類似圖片中的效果
之后,命令列輸入
$ make
成功后會出現類似圖片中的效果

3.進入omnetpp IDE環境
$ omnetpp
3. inet 及 nesting 的匯入程序
3.1 inet 的下載
inet 4.1.2版本:鏈接: inet 4.1.2.
下載好4.1.2版本后,解壓縮,將檔案名稱更改為inet,放入/omnetpp-5.5.1/samples檔案夾中
3.2 nesting的下載
nesting模型:鏈接:nesting.
下載好后,解壓縮,放入/omnetpp-5.5.1/samples檔案夾中

3.3 inet和nesting的匯入程序
- 在omnetpp的狀態欄選擇 File -> Import…
- 選擇General -> Existing Projects into Workspace 并點擊 Next >.
- 選擇 目錄(一般是sample檔案夾)
- 選擇inet和nesting,點擊Finish(由于我已經匯入了,所以是灰色的)

而后進入omnetpp,在inet和nesting檔案夾上點擊右鍵,Open_project,而后右鍵,Build_project

等待編譯完成,若沒有報錯就可以進行仿真實驗了

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/356872.html
標籤:其他
