Archlinux下安装Cisco Packet Tracer 5.3

我下载的是PacketTracer532_Generic_Ubuntu.tar.gz
解压后运行install安装即可。
不过在删除物件时程序会crash,从console 可看出发生了segment fault.
这里找到了解决方法:
发生此错误的原因是此版本的软件是为debian系列的linux系统设计的,
而在我们的系统上qt库一般是比较新的,发生此错误的原因是pt没有使用它自己的Lib目录下面的库,而是用了系统的。而pt是在老版本的qt库下编译的,因此,调用新版本的qt库难免出错。

The Crash

Anytime you try to save a project Packet Tracer will segment fault. This happens because Packet Tracer is using the system version of QT which is most likely a newer version of QT than Packet Tracer was compiled against. You can solve this issue by telling Packet Tracer to use its own QT libraries. You Can copy the following file into /usr/local/bin/pt and just run pt from a bash shell to load up Packet Tracer:

#!/bin/bash

export LD_LIBRARY_PATH=”/usr/local/PacketTracer5/lib”
/usr/local/PacketTracer5/bin/PacketTracer5

Make sure you remember to make the script executable!

1
2
3
4
[admin@huangye bin]$ cat /opt/pt/bin/pt
#!/bin/bash
export LD_LIBRARY_PATH="/opt/pt/lib"
 /opt/pt/bin/PacketTracer5

再运行,发现提示找不到libpng12 库,于是:

1
2
3
sudo pacman -S --needed libpng12
cd /opt/pt/lib/
sudo ln -s /usr/lib/libpng12.so.0.46.0 libpng12.so.0

现在再删除东东,不会crash了,不过从其输出的debug信息依然可以看出有一些warning 错误。

更多
2 Responses Post a comment
  1. 依云

    原来这个东东还有 Linux 版啊。

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS