系统:Debian linux x86_64

-----------------------------------------------------------------------------------------------------------------------

准备:Packet tracer下载:http://www.cs.rpi.edu/~kotfid/packettracer/LinuxUbuntu/

ln 命令:

解释:为某一个文件或目录在另外一个位置建立一个同步的链接

用法:ln -s 源文件 目标文件或目录

ldd 命令:

解释:用于打印程序所需要用到的库文件列表,使用前先通过file命令查看程序是否是Dynamic动态加载库文件的

用法: ldd 文件

---------------------------------------------------------------------------------------------------------------------------

开始:./install 安装PacketTracer,选择默认路径安装,运行,没有启动也没有错误提示。进入默认的安装路径下启动看看:

/opt/pt/bin# ./PacketTracer6 
提示找不到一些合适的库文件

因为pt使用的是32bit的库文件,因而需要自己下载相关的32bit库文件。

dpkg --add-architecture i386    #设置多架构支持
apt-get install 需要的库         #安装需要的库,可以尝试在库名字后面加上 :i386


这里我需要装的库分别是:

libcrypto.so.1.0.0 :i386 和 libQtWebKit.so.4

直接apt-get install 找不到,大概是软件源的原因吧,google上找到下载链接:

https://ubuntu.pkgs.org/12.04/ubuntu-main-i386/libqtwebkit4_2.2.1-1ubuntu4_i386.deb.html#

https://packages.debian.org/wheezy/i386/libssl1.0.0/download

这里可以通过ldd  程序 来查看是哪些库文件找不到


:/opt/pt# ldd /opt/pt/bin/PacketTracer6 linux-gate.so.1 (0xf7752000) 
libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0xf7561000) 
libQtWebKit.so.4 => /usr/lib/i386-linux-gnu/libQtWebKit.so.4 (0xf5111000) 
libQtScriptTools.so.4 => /usr/lib/i386-linux-gnu/libQtScriptTools.so.4 (0xf5053000) 
libQtScript.so.4 => /usr/lib/i386-linux-gnu/libQtScript.so.4 (0xf4d95000) 
libQtXml.so.4 => /usr/lib/i386-linux-gnu/libQtXml.so.4 (0xf4d4e000) 
libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xf41e7000) 
libQtNetwork.so.4 => /usr/lib/i386-linux-gnu/libQtNetwork.so.4 (0xf4081000)
libQtCore.so.4 => /usr/lib/i386-linux-gnu/libQtCore.so.4 (0xf3d68000) 
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf3d49000)
 libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf3bcf000) 
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf3b7a000)
 libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf3b5c000) 
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf39a4000)
 libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf399f000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf3984000) 
libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xf3978000) 
libjpeg.so.62 => /usr/lib/i386-linux-gnu/libjpeg.so.62 (0xf3906000) 
libpng16.so.16 => /usr/lib/i386-linux-gnu/libpng16.so.16 (0xf38cc000) 
libgstapp-1.0.so.0 => /usr/lib/i386-linux-gnu/libgstapp-1.0.so.0 (0xf38bb000) 
libgstpbutils-1.0.so.0 => /usr/lib/i386-linux-gnu/libgstpbutils-1.0.so.0 (0xf3880000) 
libgstvideo-1.0.so.0 => /usr/lib/i386-linux-gnu/libgstvideo-1.0.so.0 (0xf37eb000) 
libgstaudio-1.0.so.0 => /usr/lib/i386-linux-gnu/libgstaudio-1.0.so.0 (0xf3773000)
 libgstbase-1.0.so.0 => /usr/lib/i386-linux-gnu/libgstbase-1.0.so.0 (0xf36fc000) 
libgstreamer-1.0.so.0 => /usr/lib/i386-linux-gnu/libgstreamer-1.0.so.0 (0xf35a9000) 
libgobject-2.0.so.0 => /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 (0xf354b000) 
libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xf341f000)
 libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xf3306000) 
libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf32c3000
) libQtXmlPatterns.so.4 => /usr/lib/i386-linux-gnu/libQtXmlPatterns.so.4 (0xf2e65000) 
libQtOpenGL.so.4 => /usr/lib/i386-linux-gnu/libQtOpenGL.so.4 (0xf2d5a000) 
libGL.so.1 => /usr/lib/i386-linux-gnu/libGL.so.1 (0xf2ce7000) 
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf2b99000)
 libaudio.so.2 => /usr/lib/i386-linux-gnu/libaudio.so.2 (0xf2b7c000) 
libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf2ac8000)
 libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0xf2abe000) 
libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0xf2aa1000)
 libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf2a8c000) 
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf2a83000) 
/lib/ld-linux.so.2 (0x565c0000)
 libgsttag-1.0.so.0 => /usr/lib/i386-linux-gnu/libgsttag-1.0.so.0 
(0xf2a44000) liborc-0.4.so.0 => /usr/lib/i386-linux-gnu/liborc-0.4.so.0 
(0xf29b0000) libgmodule-2.0.so.0 => /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 (0xf29ab000) 
libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0xf29a2000)
 libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xf2929000)
 libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf28ff000)
 libxcb-dri3.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri3.so.0 (0xf28fb000)
 libxcb-present.so.0 => /usr/lib/i386-linux-gnu/libxcb-present.so.0 (0xf28f7000)
 libxcb-sync.so.1 => /usr/lib/i386-linux-gnu/libxcb-sync.so.1 (0xf28ef000)
 libxshmfence.so.1 => /usr/lib/i386-linux-gnu/libxshmfence.so.1 (0xf28ec000) 
libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0xf28d0000)
 libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xf28ca000)
 libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xf28c3000) 
libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xf28c0000)
 libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf2894000) 
libxcb-glx.so.0 => /usr/lib/i386-linux-gnu/libxcb-glx.so.0 (0xf2877000) 
libxcb-dri2.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri2.so.0 (0xf2871000) 
libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xf286a000) 
libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0xf2858000) 
libXt.so.6 => /usr/lib/i386-linux-gnu/libXt.so.6 (0xf27f1000) 
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf27ed000)
 libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf27e7000)
 libbsd.so.0 => /lib/i386-linux-gnu/libbsd.so.0 (0xf27c9000) 
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf27c2000) 


系统库文件目录一般是 /usr/lib 和 /lib所以要把下载的32bit的库文件链接到上面两个目录去,如将libcrypto.so.1.0.0.0链接到 /usr/lib:

ln -s /root/libssl1.0.0i386/usr/lib/i386-linux-gnu/libssl.so.1.0.0 /lib

 

/opt/pt/bin# ./PacketTracer6 #再次运行pt6 Debug: "Splash screen load time: 100" Debug: " Initializing Options ... " Warning: QSslSocket: cannot resolve CRYPTO_num_locks Warning: QSslSocket: cannot resolve CRYPTO_set_id_callback Warning: QSslSocket: cannot resolve CRYPTO_set_locking_callback Warning: QSslSocket: cannot resolve sk_free Warning: QSslSocket: cannot resolve sk_num Warning: QSslSocket: cannot resolve sk_pop_free Warning: QSslSocket: cannot resolve sk_value Warning: QSslSocket: cannot resolve SSL_library_init Warning: QSslSocket: cannot resolve SSL_load_error_strings Warning: QSslSocket: cannot resolve SSLv23_client_method Warning: QSslSocket: cannot resolve SSLv23_server_method Warning: QSslSocket: cannot resolve X509_STORE_CTX_get_chain Warning: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf Warning: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf Warning: QSslSocket: cannot resolve SSLeay Warning: QSslSocket: cannot call unresolved function CRYPTO_num_locks Warning: QSslSocket: cannot call unresolved function CRYPTO_set_id_callback Warning: QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback Warning: QSslSocket: cannot call unresolved function SSL_library_init Warning: QSslSocket: cannot call unresolved function SSLv23_client_method Warning: QSslSocket: cannot call unresolved function sk_num Segmentation fault


然后?然后就没有然后了.





然后换成pt7吧

链接: (未破解) https://drive.google.com/file/d/0Bw-pExAJHF0RLXFUb0VheFJ4M3c/view

解压GZ后得到的那个压缩包为tar.gz格式,解压完后./install 就好了,直接packettracer就可以运行了 ,还需要库的话,google一下应该都有。

参考

https://askubuntu.com/questions/790787/packettracer-7-in-ubuntu-16-04

http://www.cnblogs.com/perfy/p/5164430.html

http://www.cnblogs.com/perfy/p/5164430.html

https://stackoverflow.com/questions/23871038/libcrypto-so-10-cannot-open-shared-object-file-no-such-file-or-directory

https://askubuntu.com/questions/738114/packet-tracer-6-x-on-kubuntu-15-10-unfind-libkdeinit5-packettracer6-so/742722

https://unix.stackexchange.com/questions/132034/libcrypto-so-10-cannot-open-shared-object-file-no-such-file-or-directory

https://askubuntu.com/questions/342202/failed-to-load-module-canberra-gtk-module-but-already-installed

https://linux.cn/article-5576-1.html

Logo

更多推荐