(not-debian-)programs not finding libraries on Debian system...
Hello,
I have compiled a program here that is looking for X libraries in
/usr/lib... I don't want to make symlinks for all of these, that's just
plain ugly. What else can I do, put them in ld.so.preload or something?
$ strace ./spice3
execve("./spice3", ["./spice3"], [/* 32 vars */]) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40007000
mprotect(0x40000000, 21406, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8048000, 1176796, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=59404, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
old_mmap(NULL, 59404, PROT_READ, MAP_SHARED, 3, 0) = 0x40008000
close(3) = 0
stat("/etc/ld.so.preload", 0xbffff988) = -1 ENOENT (No such file or directory)
open("/usr/lib/libXaw.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libXaw.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "./spice3: can\'t load library \'li"..., 43./spice3: can't load library 'libXaw.so.6'
) = 43
_exit(16) = ?
Of course, ideally I should edit the source to fix this, problem is just
I don't know what I need to do.
Thanks,
Hugo van der Merwe
Reply to: