“Erro ao carregar bibliotecas compartilhadas”, mesmo que a biblioteca em questão esteja presente em / usr / lib

0

Estou tentando executar o Scala no meu laptop Linux Manjaro, mas sempre que tento executar o programa, exibe o seguinte erro:

./scala: error while loading shared libraries: libgtkada.so.2.24.4: cannot open shared object file: No such file or directory

No entanto, verifiquei que o arquivo de objeto compartilhado em questão está presente em /usr/lib . Eu tentei executar ldconfig como root, mas isso não resolveu o problema. Quando executo ldd scala , a saída relevante que recebo é:

...
libgtkada.so.2.24.4 => not found
...

Isso não faz sentido para mim, pois libgtkada.so.2.24.4 está presente na minha pasta /usr/lib . O que devo fazer para resolver este problema?

EDIT: A saída de strace ./scala é a seguinte:

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-

A execução de echo $LD_LIBRARY_PATH não produz saída. Isso é normal?

    
por Alex 20.07.2017 / 18:26

0 respostas