我正在尝试在 Ubuntu 16.04 LTS 上运行 PacketTracer 7.1,一切都安装正常,一切都被接受,但是当我运行命令时packettracer
,什么也没有发生...shell 只是停留在那里。
我已经尝试了几种解决方案(在启动脚本中添加行和路径、在 bash 文件上进行 chmod、重新安装、修改路径),但什么都没有发生,我在两台不同的机器上进行了全新安装。
我最终能够通过运行strace -f -o ~/Documents cpt_trace
run从中获取一些错误消息grep
并得到以下输出。
$cat cpt_trace | grep error
3064 writev(2, [{"./PacketTracer7", 15}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libicui18n.so.52", 16}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10) = 131
$ cat cpt_trace | grep such
3063 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3063 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
3063 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3063 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3063 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
3064 open("/usr/local/Qt-5.5.1/lib/tls/x86_64/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)<br>
3064 stat("/usr/local/Qt-5.5.1/lib/tls/x86_64", 0x7fff431ef330) = -1 ENOENT (No such file or directory)
3064 open("/usr/local/Qt-5.5.1/lib/tls/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/local/Qt-5.5.1/lib/tls", 0x7fff431ef330) = -1 ENOENT (No such file or directory)
3064 open("/usr/local/Qt-5.5.1/lib/x86_64/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/local/Qt-5.5.1/lib/x86_64", 0x7fff431ef330) = -1 ENOENT (No such file or directory)
3064 open("/usr/local/Qt-5.5.1/lib/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/local/Qt-5.5.1/lib", 0x7fff431ef330) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/tls/x86_64/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/opt/pt/lib/tls/x86_64", 0x7fff431ef330) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/tls/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/opt/pt/lib/tls", 0x7fff431ef330) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/x86_64/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/opt/pt/lib/x86_64", 0x7fff431ef330) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libX11.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libxslt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libxml2.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/opt/pt/lib/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3064 open("/lib/x86_64-linux-gnu/tls/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/lib/x86_64-linux-gnu/tls/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/lib/x86_64-linux-gnu/tls", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/lib/x86_64-linux-gnu/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/lib/x86_64-linux-gnu/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/lib/x86_64-linux-gnu/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/x86_64-linux-gnu/tls/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/lib/x86_64-linux-gnu/tls", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/x86_64-linux-gnu/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/x86_64-linux-gnu/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 open("/lib/tls/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/lib/tls/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/lib/tls/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/lib/tls", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/lib/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/lib/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/lib/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/tls/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/lib/tls/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/tls/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/lib/tls", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/x86_64/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 stat("/usr/lib/x86_64", 0x7fff431eea30) = -1 ENOENT (No such file or directory)
3064 open("/usr/lib/libicui18n.so.52", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
3064 writev(2, [{"./PacketTracer7", 15}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libicui18n.so.52", 16}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10) = 131
答案1
解决了。
我修改了tpl.linguist
和tpl.packettracer
。
在 行上PTDIR=III
,我将其改为PTDIR=/opt/pt
。
仍然不起作用。必须从 运行它/opt/pt/bin ./PacketTracer7
,现在它就可以工作了。