Install eclipse ns3 in ubuntu 14.04
1. NS3 install
参考NS3 tutorial即可。
2.eclipse
2.1下载
下载地址:http://www.eclipse.org/downloads/
Eclipse IDE for C/C++ Developers
NOTE: you can know whether your ubuntu is 32-bit or 64-bit by executing the command "uname -m".
如果显示i686,你安装了32位操作系统
如果显示 x86_64,你安装了64位操作系统
2.2 jre jdk安装
2种方式,个人用的第一种,能用就行呗,不是重点:
第一种:
Installing default JRE/JDK
This is the recommended and easiest option. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and on 12.10+ it will install OpenJDK 7.
Installing Java with
apt-get
is easy. First, update the package index:sudo apt-get update
Then, check if Java is not already installed:
java -version
If it returns "The program java can be found in the following packages", Java hasn't been installed yet, so execute the following command:
sudo apt-get install default-jre
This will install the Java Runtime Environment (JRE). If you instead need the Java Development Kit (JDK), which is usually needed to compile Java applications (for exampleApache Ant, Apache Maven, Eclipse and IntelliJ IDEA execute the following command:
sudo apt-get install default-jdk
That is everything that is needed to install Java.
第二种:
Step 1: Install Java 8 (JDK 8)
Add the webupd8team java PPA repository in our system and install Oracle java8 using following set of commands.
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installerStep 2: Verify JAVA Version
After successfully installing oracle java using above step verify installed version using following command.
$ java -version java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)Step 3: Setup JAVA Environment
Webupd8team is providing a package to set environment variables, Install this package using following command.
$ sudo apt-get install oracle-java8-set-default
References:
https://launchpad.net/~webupd8team/+archive/java
2.3 Eclipse安装
解压 Eclipse
使用 Ctrl+Alt+T 打开终端并使用如下命令将 Eclipse 解压到 /opt/ 目录以供全局使用:
cd /opt/ && sudo tar -zxvf ~/下载/eclipse-*.tar.gz
解压完成后,就可以在 /opt/ 目录中看到 Eclipse 了
2.4.创建 Eclipse 快捷方式
1、在终端中执行如下命令
gksudo gedit /usr/share/applications/eclipse.desktop
2、粘贴并保存如下内容
[Desktop Entry]
Name=Eclipse 4Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
至此,我们就将最新版本的 Eclipse Kepler 安装到 Ubuntu 14.04 中并可以使用了。
3.配置Eclipse NS3
参考2篇文章:
http://blog.sina.com.cn/s/blog_5d2054d901019vcj.html
https://www.nsnam.org/wiki/HOWTO_configure_Eclipse_with_ns-3
官方文档 注意看图片,此外自己的ns3工程名字注意。
步骤:
3.1 Configure Waf Builder
3.2 Configure Debugger
3.3 Configure To Run From Eclipse
- Add an external builder (Run->External Tools->External Tools Configuration) and add a new Program. Then you can configure it:
- Location = your waf location (i.e. /home/x/workspace/ns-3-dev/waf)
- Working Directory = your ns3 directory (i.e. /home/x/workspace/ns-3-dev/)
- Arguments = --run "${string_prompt}"
- Then you can run your program (with arguments) with the new created external builder.
4.结束语
最后再说一下,如果在命令行中带参数运行程序时,需要将程序名和参数使用双引号一并包含,如:
./waf --run "RPS 4" (说明:RPS是程序名,"4"是参数)
直接输入 程序名 和那些参数设置即可
如:myfirst –XX=XX
不要加引号
Install eclipse ns3 in ubuntu 14.04的更多相关文章
- Install Google Pinyin on Ubuntu 14.04
Install Google Pinyin on Ubuntu 14.04 I've been spending more and more time on Ubuntu and I'm not us ...
- How To Install Apache Kafka on Ubuntu 14.04
打算学习kafka ,接触一些新的知识.加油!!! 参考:https://www.digitalocean.com/community/tutorials/how-to-install-apache- ...
- [译]How to Install Node.js on Ubuntu 14.04 如何在ubuntu14.04上安装node.js
原文链接为 http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/ 由作者Jacob Nicholson 发表于October ...
- Install Atom editor in ubuntu 14.04
Step 1: Add repository sudo add-apt-repository ppa:webupd8team/atom Step 2: Update the repository su ...
- Ubuntu 14.04—Eclipse配置Pydev
Eclipse: 1. 下载 Eclipse 最新版 访问官方网站下载 Eclipse 最新版,这个就不多说了,大家自己去下. http://www.eclipse.org/downloads/?o ...
- Ubuntu 14.04 安装adobe flash player
参考: How to install flash payer in Ubuntu 14.04 LTS? [duplicate] Ubuntu 14.04 安装adobe flash player 32 ...
- Ubuntu 14.04 使用VirtualBox 4.3.10 虚拟 Windows 7
Ubuntu 14.04 尽管不错,可是有些事仅仅能在Windows下才干完毕,所以在 Ubuntu 下利用虚拟机软件Oracle VirtualBox,虚拟安装个Windows系统是个不错的选择. ...
- Ubuntu 14.04中安装最新版Eclipse
Ubuntu 14.04中安装最新版Eclipse 来源:Linux社区 作者:Linux 1.安装OpenJDK Java 7 如果你的系统中没有安装Java,我们需要按照如下步骤事先安装好 ...
- 如何在Ubuntu 14.04中安装最新版Eclipse
想必很多开发人员都知道,Ubuntu 软件源中提供的并不是最新版本的 Eclipse,本教程就教大家如何在 Ubuntu 14.04 中快速安装 Eclipse 官方发布的最新版本. 到目前为止,Ec ...
随机推荐
- 关于pcl索引的使用
最近开始动手做实验,之前写了一个小实验利用到了PCL库中的索引: 现在在写利用PCL中的RegionGrowing类来分割生成面片,无论是迭代生成还是进行提取都需要用到pcl库中定义的索引, 虽然搞的 ...
- Java项目案例之---开灯(面向对象复习)
开灯(面向对象复习) 设计一个台灯类(Lamp)其中台灯有灯泡类(Buble)这个属性,还有开灯(on)这个方法 设计一个灯泡类(Buble),灯泡类有发亮的方法 其中有红灯泡类(RedBuble)和 ...
- k8s学习 - 概念 - Pod
k8s学习 - 概念 - Pod 这篇继续看概念,主要是 Pod 这个概念,这个概念非常重要,是 k8s 集群的最小单位. 怎么才算是理解好 pod 了呢,基本上把 pod 的所有 describe ...
- 剑指offer第二版-总结:二叉树的遍历
思想:前序(根左右),中序(左根右),后序(左右根) 前序非递归遍历: 首先判断根是否为空,将根节点入栈 1.若栈为空,则退出循环 2.将栈顶元素弹出,访问弹出的节点 3.若弹出的节点的右孩子不为空则 ...
- Java中什么是type,它和class有什么关系?
看代码总能遇到关键字--type,对于type的概念不明白.翻译水平也有限,所以贴几个地址.自己先看着. https://stackoverflow.com/questions/16600750/di ...
- 算法导论--最小生成树(Kruskal和Prim算法)
转载出处:勿在浮沙筑高台http://blog.csdn.net/luoshixian099/article/details/51908175 关于图的几个概念定义: 连通图:在无向图中,若任意两个顶 ...
- JS时间处理,获取天时分秒。以及浏览器出现的不兼容问题
//获取时间的天,小时,分钟,秒 function ToTime(second) { second = second / ; var result ; ) % ; ) % ; * )); ) { re ...
- ListView在ScrollView中不显示全部的问题
在实际应用中,我们可能会遇到把ListView放到ScrollView中的情况,在这种情况下,ListView的滑动属性与ScrollView的滑动出现冲突,从而ListView只显示一项.这里提供一 ...
- hadoop的运行模式
概述 1)资料查询(官方网址) (1)官方网站: http://hadoop.apache.org/ (2)各个版本归档库地址 https://archive.apache.org/dist/hado ...
- Kotlin之var和val区别
var 和 val 是Kotlin的两个声明变量的关键字, var声明的变量是一个可变的变量,而val声明的变量是一个只读的变量(类似于java中的final变量)