Ubunut----Mininet安装教程(Cannot find required executable ovs-vsctl的解决方案)

Mininet 安装教程

前提:一:安装一个Ubuntu 的虚拟机什么版本都可以要是没有什么关键的作用低点的版本也可以,实际情况看自己的情况。:在这次实验用的是16版本的Ubuntu
在这里插入图片描述

二:虚拟机必须要联网,可以直接从网上获取关于安装Mininet的一些源码
注意:最为的简单的判断方法就是是否可以ping 通 www.baidu.com ping通说明就可以上
在这里插入图片描述

三:因为刚安装的虚拟机软件和更新下载的速度特别的慢,所以要改变从互联网的下载路径
在这里插入图片描述

什么是Mininet?为什么要安装 Mininet?Mininet有什么作用?
Mininet 是一个轻量级软件定义网络和测试平台;它采用轻量级的虚拟化技术使一个单一的系统看起来像一个完整的网络运行相关的内核系统和用户代码,也可简单理解为 SDN 网络系统中的一种基于进程虚拟化平台,它支持 OpenFlow、OpenvSwith 等各种协议,Mininet 也可以模拟一个完整的网络主机、链接和交换机在同一台计算机上且有助于互动开发、测试和演示,尤其是那些使用 OpenFlow 和 SDN 技术;同时也可将此进程虚拟化的平台下代码迁移到真实的环境中。


安装Mininet

任务一:安装git

apt install git   //因为本次安装需要git命令可以现安装,小编已经做过一遍了,所以在这里可能与你们显示的不一样

在这里插入图片描述

任务二:更新软件

apt-get update

在这里插入图片描述

apt-get upgrade

在这里插入图片描述

任务三:获取Mininet源码。

git clone git://github.com/mininet/mininet   //同样的原因,文件已经存在,只要你再执行第二遍的时候,也会有同样的输出

在这里插入图片描述

任务四: 查看当前获取的Mininet版本

cd mininet
cat INSTALL

在这里插入图片描述

任务五:安装Mininet

./mininet/util/install.sh -a //a在这里是完整安装

在这里插入图片描述
任务六:测试Mininet的基本功能。

sudo mn --test pingall

在这里插入图片描述

注意:安装的过程中可能出现许许多多的问题尽量的通过查询资料来克服。 下面是我遇到的问题:

在这里插入图片描述

解决方法: 重新安装一下Mininet,在安装的命令后面加上-V ,然后后面的问题就解决啦

在这里插入图片描述

  • 6
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
This error message is indicating that the linker (ld) cannot find a library named "-lib". The linker is used to link together object files and libraries to create an executable file. There could be several reasons why this error is occurring: 1. The library is not installed on the system: If the library is not installed on the system, the linker will not be able to find it. You can check if the library is installed by running the command "ldconfig -p | grep lib". This will show a list of all the libraries installed on the system. 2. The library is not in the linker's search path: The linker searches for libraries in certain directories. If the library is not in one of these directories, the linker will not be able to find it. You can check the linker's search path by running the command "ld --verbose | grep SEARCH_DIR". This will show a list of directories where the linker is searching for libraries. 3. The library is not named correctly: The linker is looking for a library named "-lib". This is not a valid library name. Library names should start with "lib" followed by the name of the library. For example, if the library is named "mylib", the linker should be looking for "libmylib.so" or "libmylib.a". To fix this error, you will need to determine which of these issues is causing the problem and then take the appropriate action. If the library is not installed, you will need to install it. If the library is not in the linker's search path, you will need to add the directory containing the library to the linker's search path. If the library is not named correctly, you will need to rename it to start with "lib".

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不想睡醒的梦

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值