Ubuntu 16.04 - Why I cannot install libtiff4-dev?

与世无争的帅哥 提交于 2019-12-10 13:06:31

问题


Following this tutorial, I am trying to install the OpenCV 3 with Python on Ubuntu 16.04.

At the step of entering $ sudo apt-get install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev

I got this message:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libtiff4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libtiff5-dev:i386 libtiff5-dev

E: Package 'libtiff4-dev' has no installation candidate

Is this because I am using the latest LTS release of Ubuntu (the author used Ubuntu 14.04)? Is it okay if I just install the libtiff5-dev one (I mean, will it effect the OpenCV operation that I will be building from now on)?


回答1:


I had the same issue on Ubuntu 15.10, So, it is not because of using latest LTS release (Ubuntu 16.04).

OpenCV requires libtiff-dev package to support TIFF images and libtiff5-dev is currently the latest available package.

So, I think it is best to install libtiff5-dev:

sudo apt-get install libtiff5-dev (for 64 bit system)

sudo apt-get install libtiff5-dev:i386 (for 32 bit system)



来源:https://stackoverflow.com/questions/37313456/ubuntu-16-04-why-i-cannot-install-libtiff4-dev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!