Cannot locate libvips.so.42, now on Red Hat Linux 9 (or RHEL 9)
See original GitHub issueI’m using the following set of instructions to install all the dependencies for Red Hat Linux 9 (or RHEL 9):
-------------------------------------- Install PyVips ----------------------------------------
$ su root
# dnf install python-requests
# dnf install python-pip
# dnf install python-wheel
# subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms
# exit
$ pip install pyvips
----------------------------------------- Install LibVips -------------------------------------
$ su root
# subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
# dnf upgrade
# dnf install snapd
# systemctl enable --now snapd.socket
# ln -s /var/lib/snapd/snap /snap
logout/reboot RHEL9
$ su root
# snap wait system seed.loaded
# snap install libvips
--------------------------------- Run the wind.py app -------------------------------
Go to the app folder first, then
$ python wind.py
My Python app runs perfectly under Windows: https://github.com/nakigoe/sea/tree/main/graph_wind_create But under RHEL 9 (Red Hat Linux 9) an infamous error pops up: Cannot locate libvips.so.42
Issue Analytics
- State:
- Created a year ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Issues · libvips/pyvips - GitHub
Contribute to libvips/pyvips development by creating an account on GitHub. ... Cannot locate libvips.so.42, now on Red Hat Linux 9 (or RHEL 9)....
Read more >Chapter 8. Known issues Red Hat Enterprise Linux 9
When booting the RHEL installation from a USB that is created using a third party tool, the installer fails to detect the Local...
Read more >Red Hat Enterprise Linux (RHEL) 9 - unixsysadmin.com
Comprehensive collection of bookmarks, resources, how-to's and repositories for installing and managing RHEL 9, released on 17 May 2022.
Read more >Could not open library 'libvips.42.dylib' - Stack Overflow
When upgrading from rails 6 to rails 7, and running some ActiveStorage methods locally, I see: Could ...
Read more >Cisco UCS Integrated Infrastructure with Red Hat Enterprise ...
Red Hat Enterprise Linux OpenStack Platform 7 on Cisco UCS helps IT ... 9. nova-compute sends the rpc.call request to nova-conductor to fetch...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here are some instructions to install libvips on RHEL 9 (and its derivatives) via Remi’s RPM repository.
Optional modules
See https://github.com/libvips/libvips/issues/1184#issuecomment-447973135 for reasons why libvips isn’t included in EPEL. Personally, I would use AlmaLinux or Rocky Linux because I don’t like subscription-managed distributions.
• Removing pyvips both from the normal user
$ pip uninstall pyvips
and the root user# pip uninstall pyvips
• manually clearing the pip cache by finding it withpip cache dir
• installing pyvips from the usual user$ pip install pyvips
solved the issue. The output of$ python test.py k2.jpg
:A huge thank you to @jcupitt and @kleisauke for the fast-paced help and patience!!!