Ubuntu 16.04 - Why I cannot install libtiff4-dev?

22,814

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)

Share:
22,814
Hafiz Hilman Mohammad Sofian
Author by

Hafiz Hilman Mohammad Sofian

I am a student that is right now learning programming pretty much by myself. Now is learning Python and OpenCV. Looking forward to immerse myself inside the programming world.

Updated on July 09, 2022

Comments

  • Hafiz Hilman Mohammad Sofian
    Hafiz Hilman Mohammad Sofian almost 2 years

    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)?

  • brunoramonalmeida
    brunoramonalmeida over 6 years
    What about the "libjasper-dev". It seems to be the same problem, but in this one, it does not appear any candidates for substitute it
  • Ajeet Shah
    Ajeet Shah over 6 years
    @brunoramonalmeida What is your ubuntu version? And how are you trying to install libjasper-dev?
  • brunoramonalmeida
    brunoramonalmeida over 6 years
    I use Kubuntu 17.10
  • Ajeet Shah
    Ajeet Shah over 6 years
    @brunoramonalmeida Read the instructions to manually install it because the package (libjasper-dev) you are looking for seems to be not ready for 17.10 (but ready for 16.04). Check this (17.10) and this (16.04).