LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-03-2021, 05:39 AM   #1
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Rep: Reputation: 3
Where is libjpeg.so.7 in centos 7 ?


System info:

Code:
$ cat /etc/centos-release 
CentOS Linux release 7.6.1810 (Core)
Code:
$ uname -a
Linux lb-cbga-eq 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
---------------------
Hi

I have a centos 7 installation on which I tried to import wx in python and it came up with an error:
ImportError: libjpeg.so.7: cannot open shared object file: No such file or directory

And indeed it seems not to be there in the .so:
$ ldd python/3.7.1/lib/python3.7/site-packages/wx/_core.cpython-37m-x86_64-linux-gnu.so | grep libjpeg.so.7
libjpeg.so.7 => not found

From the other package names it looks like libjpeg.so.7 /lib64, but it is not. I cannot seem to find it anywhere. rpm does not know about it:
Code:
$ rpm -q --whatprovides /lib64/libjpeg.so.7
file /lib64/libjpeg.so.7 is not owned by any package
A grep for libjpeg in the repo xml file for centos 7.6.1810 results in the packages libjpeg-turbo and libjpeg-turbo-devel, both of which are installed, but neither of them seem to provide libjpeg.so.7:

Code:
$ rpm -ql libjpeg-turbo-devel.x86_64
/usr/include/jconfig.h
/usr/include/jerror.h
/usr/include/jmorecfg.h
/usr/include/jpeglib.h
/usr/lib64/libjpeg.so
/usr/lib64/pkgconfig/libjpeg.pc
/usr/share/doc/libjpeg-turbo-devel-1.2.90
/usr/share/doc/libjpeg-turbo-devel-1.2.90/coderules.txt
/usr/share/doc/libjpeg-turbo-devel-1.2.90/example.c
/usr/share/doc/libjpeg-turbo-devel-1.2.90/jconfig.txt
/usr/share/doc/libjpeg-turbo-devel-1.2.90/libjpeg.txt
/usr/share/doc/libjpeg-turbo-devel-1.2.90/structure.txt
Code:
$ rpm -ql libjpeg-turbo.x86_64
/usr/lib64/libjpeg.so.62
/usr/lib64/libjpeg.so.62.1.0
/usr/share/doc/libjpeg-turbo-1.2.90
/usr/share/doc/libjpeg-turbo-1.2.90/ChangeLog.txt
/usr/share/doc/libjpeg-turbo-1.2.90/README
/usr/share/doc/libjpeg-turbo-1.2.90/README-turbo.txt
/usr/share/doc/libjpeg-turbo-1.2.90/change.log
My more global searches for the library have so far also drawn a blank.

Does anyone know where I can get hold of libjpeg.so.7 for centos 7 from ? Or what package is it included in ?
 
Old 02-03-2021, 09:16 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"libjpeg7" is an old version, year ~2010.

Current versions are libjpeg-turbo → libjpeg.so.62, and some OS have "libjpeg9".

libjpeg.so.7 : Get the source http://archive.debian.org/debian-arc..._7.orig.tar.gz

Code:
$ cd jpeg-7/
$ ./configure && make
    // Then copy jpeg-7/.libs/libjpeg.so.7.0.0 to /usr/lib64/, and create the link:
# ln -s libjpeg.so.7.0.0 libjpeg.so.7
 
Old 02-04-2021, 09:04 AM   #3
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Original Poster
Rep: Reputation: 3
Thank you very much for the reply.
Yes that seemed to work and I can now import wx.

If it is an old version I'm wondering how I've got a python library that depends on it (I assumed ti was a newer version).
Maybe need to do some upgrading somewhere.

Thank you for you help solving the immediate issue.
 
  


Reply

Tags
centos7, libraries



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm libjpeg conflicts with libjpeg-turbo jspence Red Hat 2 11-07-2016 06:46 AM
libjpeg error handling luigi Programming 1 04-19-2005 04:43 AM
libjpeg already installed... i try to uninstall... not installed... thiscompismessing Laptop2250 Linux - Software 1 11-21-2003 08:20 PM
libjpeg.so.62 file not delete?? eye Red Hat 1 09-02-2003 01:56 PM
Where to obtain the library for v6 of libjpeg? whepin Linux - General 1 03-31-2002 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration