나는 달리려고 노력하고있다.스칼라내 Linux Manjaro 노트북에서 프로그램을 실행하려고 할 때마다 다음 오류가 표시됩니다.
./scala: error while loading shared libraries: libgtkada.so.2.24.4: cannot open shared object file: No such file or directory
그러나 문제의 공유 개체 파일이 존재하는지 확인했습니다 /usr/lib
. 루트로 실행을 시도했지만 ldconfig
문제가 해결되지 않았습니다. 을 실행하면 ldd scala
수신되는 관련 출력은 다음과 같습니다.
...
libgtkada.so.2.24.4 => not found
...
libgtkada.so.2.24.4
내 /usr/lib
폴더 에 존재하기 때문에 이것은 나에게 의미가 없습니다 . 이 문제를 해결하려면 어떻게 해야 합니까?
편집: 출력은 strace ./scala
다음과 같습니다.
execve("./scala", ["./scala"], 0x7ffd5332dbc0 /* 23 vars */) = 0
strace: [ Process PID=7780 runs in 32 bit mode. ]
brk(NULL) = 0x98b7000
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7726000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=319201, ...}) = 0
mmap2(NULL, 319201, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf76d8000
close(3) = 0
open("/usr/lib32/tls/i686/sse2/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32/tls/i686/sse2", 0xffbe4c20) = -1 ENOENT (No such file or directory)
open("/usr/lib32/tls/i686/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32/tls/i686", 0xffbe4c20) = -1 ENOENT (No such file or directory)
open("/usr/lib32/tls/sse2/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32/tls/sse2", 0xffbe4c20) = -1 ENOENT (No such file or directory)
open("/usr/lib32/tls/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32/tls", 0xffbe4c20) = -1 ENOENT (No such file or directory)
open("/usr/lib32/i686/sse2/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32/i686/sse2", 0xffbe4c20) = -1 ENOENT (No such file or directory)
open("/usr/lib32/i686/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32/i686", 0xffbe4c20) = -1 ENOENT (No such file or directory)
open("/usr/lib32/sse2/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32/sse2", 0xffbe4c20) = -1 ENOENT (No such file or directory)
open("/usr/lib32/libgtkada.so.2.24.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib32", {st_mode=S_IFDIR|0755, st_size=49152, ...}) = 0
writev(2, [{iov_base="./scala", iov_len=7}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="libgtkada.so.2.24.4", iov_len=19}, {iov_base=": ", iov_len=2}, {iov_base="cannot open shared object file", iov_len=30}, {iov_base=": ", iov_len=2}, {iov_base="No such file or directory", iov_len=25}, {iov_base="\n", iov_len=1}], 10./scala: error while loading shared libraries: libgtkada.so.2.24.4: cannot open shared object file: No such file or directory
) = 126
exit_group(127) = ?
+++ exited with 127 +++
alex@laptop ~/S/scala-
실행하면 echo $LD_LIBRARY_PATH
출력이 생성되지 않습니다. 이게 정상인가요?