How do I install libtiff.so.3?
When I try to run Maya from the terminal, I get:
error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory.
How do I solve this?
Note: Maya is a third-party software.
Solution 1:
Repositories for 16.04, 16.10, 17.04 and 17.10 have libtiff5
(most likely included in installation) which provides libtiff.so.5
but not libtiff.so.3.
This causes problems for applications that look for libtiff.so.3
as detailed in this bug report
First do
sudo apt install libtiff5
You will likely find it is already installed. However, if not, see if this fixes the problem.
If not, try this workaround: To fool applications into using libtiff.so.5
instead of libtiff.so.3
, you can create a symlink in the same directory named libtiff.so.3
pointing to libtiff.so.5.
This may not work for all applications, since the libraries are not exactly the same.
To do this in a 32-bit system enter:
sudo ln -s /usr/lib/i386-linux-gnu/libtiff.so.5 /usr/lib/i386-linux-gnu/libtiff.so.3
In a 64-bit system it would be:
sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libtiff.so.3
If unsure, you can find the library on your system like this:
locate -b libtiff
Then you will be able to get the path correct (if you just installed libtiff5, you have to first do sudo updatedb
for locate
to find it)
Solution 2:
You're missing the TIFF library. apt-cache search libtiff
shows packages, you'll need libtiff4
:
sudo apt-get install libtiff4