前段时间换了ubuntu单系统,网络工程实验课需要CPT模拟器。- -现在某度上的解决方案比较老陈旧。至少我没法用,依赖已经过期。科技上网我总结了自己的解决方案。
首先下载packetTracer,可以从cisco官网上找,需要注册一下cisco academy,然后才能下载模拟器。
下载好了之后,新建一个文件夹,解压。在解压得到的文件夹中运行install
./install
一路Y下去,安装完成。使用
/opt/pt/bin/./PacketTracer7
打开,发现提示你有个依赖没装
/opt/pt/bin/./PacketTracer7: error while loading shared libraries: libQt5Script.so.5: cannot open shared object file: No such file or directory
不过libqt5script.so.5这个依赖提示实际上是一个mislead。不信的话你可以sudo apt install libqt5scripttools5(这是网上一个同学的解决方法)发现安装好了这个之后还是会报同样的错误。
解决方法是:
LD_LIBRARY_PATH=/opt/pt/lib /opt/pt/bin/./PacketTracer7
steven@steven-Lenovo-Y50-70:~$ LD_LIBRARY_PATH=/opt/pt/