I create my program on my computer on which libtiff.so -> libtiff.so.5 . And then we push assemblies to another machine on which libtiff.so -> libtiff.so.4 .
At runtime, my program exists: "error loading shared libraries: libtiff.so.5 : cannot open shared object file: there is no such file or directory."
I cannot upgrade another machine, and I would like to avoid compiling on a virtual machine (with the same version of Linux as the executing machine). Therefore, I would like to force the compiler to use libtiff.so.4 instead of libtiff.so.5 .
I have libtiff.so.4 installed on my computer (as well as libtiff.so.5 ). How can I force binding to this version instead of the new version. I was thinking of moving libtiff.so -> libtiff.so.4 , but I'm afraid to break my system if it needs the latest version ( apt-get purge libtiff5 gives an error because it needs some other package).
Can I link to the old (installed) version of the library? If so, how? And is it harmful to change the libtiff.so symbolic link to an older version? If not, will he solve my problem?
source share