Add a dependency to libtiff.so.5 / Setup program installed libtiff.so.6

Hello,
I have installed a software (Design photo books: dm Fotowelt - Bestellsoftware kostenloser Download | dm Foto-Paradies).
When I start it, I get the message

./dm-Fotowelt: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory

The setup program has installed libtiff.so.6.
I found the information here (AUR (en) - cewe-fotowelt) that “llibtiff5” should be added as a dependency.
When I search for libtiff.so.5 on my computer, I also find this file in several places.
How can I create a dependency?

Thank you.

@Spiff you can fool it with libtiff.so.6?

As root user;

cd /usr/lib64/
ln -s libtiff.so.6 libtiff.so.5
ldconfig

But best to ask the provider to allow version 6 as well…

I just wanted to ask if something like this works

ln -s existing_source_file optional_symbolic_link

Seems like your answer will work…
I wil try that.
Thank you

@Spiff it does, I did test first :wink: Maybe a better option is to copy libtiff.so.6.0.0 to the folder ~/dm/dm/… and create the symlink there then it will stay off the system and not subject to updates.

I did it in the folder (libtiff.so.6.0.0 was already there).
When i now start the program it shows me this message

./dm-Fotowelt: error while loading shared libraries: libtiff.so.5: wrong ELF class: ELFCLASS32

:confused:

Does that mean that the installed libtiff.so.6.0.0 is from the wrong ELF class?

I may copy & paste the file from /usr/lib64…

You copied or linked /usr/lib/libtiff.so.6 (which is a 32bit library) instead of /usr/lib64/libtiff.so.6 (which is a 64bit library). Hence the error about the wrong ELF class…

@hui @malcolmlewis
Thank you for your support! Now it works. :partying_face:

Finally i deleted the current program and made a new installation.

When looking after the libtiff-files i got this:

lrwxrwxrwx 1 user user     16 17. Jan 20:56 libtiff.so -> libtiff.so.6.0.0
lrwxrwxrwx 1 user user     16 17. Jan 20:56 libtiff.so.6 -> libtiff.so.6.0.0
lrwxrwxrwx 1 user user     16 17. Jan 20:56 libtiff.so.6.0 -> libtiff.so.6.0.0
-rwxr-xr-x 1 user user 559240 11. Jan 14:47 libtiff.so.6.0.0

Then i checked the ELF version from libtiff.so.6.0.0

user@ln-sg-vpn1:~/dm/dm-Fotowelt> readelf -h libtiff.so.6.0.0 
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)

When starting the program i got this error

user@ln-sg-vpn1:~/dm/dm-Fotowelt> ./dm-Fotowelt 
./dm-Fotowelt: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory

Then i made the symbolic link

user@ln-sg-vpn1:~/dm/dm-Fotowelt> sudo ln -s libtiff.so.6 libtiff.so.5

Now it is working :star_struck: