libtiff.so.5: version `LIBTIFF_4.0' not found (required by *.so) for matlab in ubuntu environment?

18 次查看(过去 30 天)
When running a mex file or mixing it with the opencv library, an error like the one below occurs, how do I fix it?
libtiff.so.5: version `LIBTIFF_4.0' not found (required by *.so)
or
libtiff.so.5: no version information available

采纳的回答

xingxingcui
xingxingcui 2023-3-28
编辑:xingxingcui 2024-4-27
I solved the problem using the following:
sudo rm -rf /usr/local/MATLAB/<MATLAB_RELEASE>/bin/glnxa64/libtiff.so.5
sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4 /usr/local/MATLAB/<MATLAB_RELEASE>/bin/glnxa64/libtiff.so.5
The first command line removes the libtiff.xo.5 file from its original path. The second command is to link /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4 to /usr/local/MATLAB/<MATLAB_RELEASE>/bin/glnxa64/libtiff.so.5. This way, the two file versions correspond and the problem is solved.
Execute the command
locate libtiff.so.5.2.4
You will find this file in the /usr/local/MATLAB/<MATLAB_RELEASE>/bin/glnxa64/ directory:
/usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4
The above is only currently valid for my computer, if you have a better answer, please feel free to suggest it.
Reference:
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com

更多回答(1 个)

Mihai Tanase
Mihai Tanase 2023-6-8
very useful, thanks for sharing

类别

Help CenterFile Exchange 中查找有关 Manage Products 的更多信息

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by