gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gcmd-dev] Compiling on different platforms


From: Uwe Scholz
Subject: Re: [gcmd-dev] Compiling on different platforms
Date: Sun, 28 Nov 2021 17:48:08 +0100

Am Sun, 28 Nov 2021 16:23:50 +0100 schrieb Stefan Czinczoll:
>
> [...] and I could "make install".
> 
> However, the binary won't run:
> 
> $ gnome-commander
> gnome-commander: error while loading shared libraries: libgcmd.so.0: 
> cannot open shared object file: No such file or directory

Normally "make install" would install all files in some predifined
paths on your system, given that you did not specify an individual
target.

In my case, make install puts the mentioned file to
/usr/local/lib/gnome-commander/libgcmd.so.0

When running "make install" as root you see in the very first lines where the 
file is installed at:

# make install
Making install in libgcmd
make[1]: Verzeichnis „/home/uwe/Programmieren/Projekte/gnome-commander/libgcmd“ 
wird betreten
make[2]: Verzeichnis „/home/uwe/Programmieren/Projekte/gnome-commander/libgcmd“ 
wird betreten
 /bin/mkdir -p '/usr/local/lib/gnome-commander'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libgcmd.la 
'/usr/local/lib/gnome-commander'
libtool: install: /usr/bin/install -c .libs/libgcmd.so.0.0.0 
/usr/local/lib/gnome-commander/libgcmd.so.0.0.0
                                      
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libtool: install: (cd /usr/local/lib/gnome-commander && { ln -s -f 
libgcmd.so.0.0.0 libgcmd.so.0 || { rm -f libgcmd.so.0 && ln -s libgcmd.so.0.0.0 
libgcmd.so.0; }; })

In the last line the link from libgcmd.so.0 to libgcmd.so.0.0.0 is created.

With the tool "strace" you can check where Gnome Commander tries to find the 
file:

strace -o /tmp/gcmd.log gnome-commander; grep libgcmd.so.0 /tmp/gcmd.log

openat(AT_FDCWD, 
"/usr/local/lib/gnome-commander/glibc-hwcaps/x86-64-v2/libgcmd.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, 
"/usr/local/lib/gnome-commander/tls/x86_64/x86_64/libgcmd.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/local/lib/gnome-commander/tls/x86_64/libgcmd.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/local/lib/gnome-commander/tls/libgcmd.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/local/lib/gnome-commander/x86_64/x86_64/libgcmd.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/local/lib/gnome-commander/x86_64/libgcmd.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/local/lib/gnome-commander/libgcmd.so.0", 
O_RDONLY|O_CLOEXEC) = 3

In the last line the file was foundHope that helps in your investigation

Uwe

-- 
Wer nicht miteinander reden will, sondern nur entscheiden, muß halt
in den Busch auswandern und sich um einen Diktatorposten bewerben.
         -- Oliver Zendel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]