WHM / CPANEL and ImageMagick-devel 6 conflict with ImageMagick 7 - imagemagick

I installed ImageMagick 7
I have CentOS 8 with latest WHM
but when I do yum install ImageMagick => it wants to install 6.9, but 7 is already installed.
** QUESTION 1 :** is it possible to force WHM not to want to install ImageMagick-devel ???
** QUESTION 2 :** is 1 is not possible => then can I force (other way than yum.conf) to make dnf or yum to never see any ImageMagick 6.9 ????
When I create a support ticket, they seems only refers to yum.conf everytime. but that doesn't address the issue.
I even went and tried to "ln -s" any ImageMagick7 to ImageMagick6 in /usr/include/ and other places that the ImageMagick Libs is installed, but that didn't do anything.
because I tried editing yum.conf and added exclude=Image-Magick-devel but that is still the error of not being able to install required packages......
when the update script runs this /usr/local/cpanel/scripts/sysup
I get those errors
info [sysup] ea4: repo already installed
checkyum version 22.3 (excludes: bind-chroot kernel ruby)
checkyum version 22.3 (excludes: bind-chroot kernel)
info [sysup] Starting yum execution “--assumeyes --color=never --config /etc/yum.conf install ImageMagick-devel --enablerepo=powertools --enablerepo=epel”.
Last metadata expiration check: 2:19:16 ago on Fri Jul 9 14:54:34 2021.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
ImageMagick-devel x86_64 1:6.9.11.60-1.el8.remi remi 136 k
Installing dependencies:
ImageMagick x86_64 1:6.9.11.60-1.el8.remi remi 103 k
ImageMagick-libs x86_64 1:6.9.11.60-1.el8.remi remi 2.4 M
Transaction Summary
================================================================================
Install 3 Packages
Total size: 2.7 M
Installed size: 8.8 M
Downloading Packages:
[SKIPPED] ImageMagick-6.9.11.60-1.el8.remi.x86_64.rpm: Already downloaded
[SKIPPED] ImageMagick-devel-6.9.11.60-1.el8.remi.x86_64.rpm: Already downloaded
[SKIPPED] ImageMagick-libs-6.9.11.60-1.el8.remi.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
file /usr/bin/animate from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/compare from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/composite from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/conjure from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/convert from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/display from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/identify from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/import from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/mogrify from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/montage from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/stream from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/ImageMagick.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/animate.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/compare.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/composite.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/conjure.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/convert.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/display.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/identify.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/import.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/mogrify.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/montage.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/share/man/man1/stream.1.gz from install of ImageMagick-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/MagickCore-config from install of ImageMagick-devel-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-devel-7.1.0.2-1.el8.remi.x86_64
file /usr/bin/MagickWand-config from install of ImageMagick-devel-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-devel-7.1.0.2-1.el8.remi.x86_64
file /usr/lib64/pkgconfig/ImageMagick.pc from install of ImageMagick-devel-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-devel-7.1.0.2-1.el8.remi.x86_64
file /usr/lib64/pkgconfig/MagickCore.pc from install of ImageMagick-devel-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-devel-7.1.0.2-1.el8.remi.x86_64
file /usr/lib64/pkgconfig/MagickWand.pc from install of ImageMagick-devel-1:6.9.11.60-1.el8.remi.x86_64 conflicts with file from package ImageMagick7-devel-7.1.0.2-1.el8.remi.x86_64
info [sysup] Completed yum execution “--assumeyes --color=never --config /etc/yum.conf install ImageMagick-devel --enablerepo=powertools --enablerepo=epel”: in 4.886 second(s).
(XID 7t4cua) “/usr/local/cpanel/scripts/retry_rpm” reported error code “1” when it ended:
checkyum version 22.3 (excludes: bind-chroot ruby)
E Sysup: Needed system RPMs were not installed: ImageMagick-devel

I don't really understand what is your real goal
Packages in my repository are designed to allow parallel installation of various library versions
ImageMagick-libs, from EPEL, old version 6.9.10 (used by some app from EPEL)
ImageMagick6-libs for latest version 6.9.12 (used by php-pecl-imagick-im6 or vips-magick-im6)
ImageMagick6-libs for latest version 7.1.0 (used by php-pecl-imagick-im6 or vips-magick-im7)
But you can only install 1 version of the commands (ImageMagick) and of the development headers (ImageMagick-devel)
So looks like cpanel is not able to manage such configuration.

A Cpanel level III was able to pinpoint the issue, fix it and PLUS : do a post explaining everything ;)
https://support.cpanel.net/hc/en-us/articles/4403997242775-CentOS-8-Sysup-failure-if-ImageMagick7-installed-from-the-REMI-repository?source=search&auth_token=eyJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjo5Mjc3OTc5LCJ1c2VyX2lkIjozODkxMzkxNTk2NTQsInRpY2tldF9pZCI6OTQzNDI2OTksImNoYW5uZWxfaWQiOjYzLCJ0eXBlIjoiU0VBUkNIIiwiZXhwIjoxNjI4NDc4MTc0fQ.iAVLyknZaWernw8T1op8D7pxOLSFrz6WcuPBeYy0qh0
Workaround
Ignore the errors or Modify the cPanel update requirement manually to suppress the errors.
sed -i.bak '/ImageMagick-devel/d' /usr/local/cpanel/Cpanel/Sysup.pm
echo /usr/local/cpanel/Cpanel/Sysup.pm >> /etc/cpanelsync.exclude
/scripts/upcp
To return the cPanel update system to normal functionality, remove the updates exclude file.
/bin/rm /etc/cpanelsync.exclude

Related

install MongoDB C++ Driver problem in ubuntu 16.04

I want to install MongoDB C++ Driver, so first is mongocxx
I follow this installation:
http://mongocxx.org/mongocxx-v3/installation/
but I can not pass step 4
when I run this in mongo-cxx-driver/build
sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
it shows
-- Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive
CMake Error at src/mongocxx/CMakeLists.txt:37 (find_package):
By not providing "Findlibmongoc-1.0.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"libmongoc-1.0", but CMake did not find one.
Could not find a package configuration file provided by "libmongoc-1.0"
(requested version 1.13.0) with any of the following names:
[![enter image description here][1]][1]
libmongoc-1.0Config.cmake
libmongoc-1.0-config.cmake
Add the installation prefix of "libmongoc-1.0" to CMAKE_PREFIX_PATH or set
"libmongoc-1.0_DIR" to a directory containing one of the above files. If
"libmongoc-1.0" provides a separate development package or SDK, be sure it
has been installed.
second question,
Step 2: Choose a C++17 polyfill how can I set MNMLSTC/core?
does anyone can help me,I already trap here for a long time ?
my env:
mongo-c-driver 1.15.1
libmongoc-1.0
mongocxx-3.4.x
Cmake is complaining about not finding a package configuration file (xxx.cmake), probably because you didn't build libmongoc/libbson.
I've tried to reproduce your issue and hit the same problem when I only installed them (apt-get install), so my suggestion is that you get the sources and build them as described at: http://mongoc.org/libmongoc/current/installing.html
Here's the list of commands (with the latest version of mongo-c-driver=1.15.1) which I just tried and worked fine:
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.15.1/mongo-c-driver-1.15.1.tar.gz
tar xzf mongo-c-driver-1.15.1.tar.gz
cd mongo-c-driver-1.15.1
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
make
sudo make install
At this point you can go back into mongocxx/build and run again the command you were stuck at:
cd ../../mongo-cxx-driver/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..

Ubuntu 14.04 "libopencv-dev" package don't have libraries and headers?

I install libopencv-dev package in Ubuntu 14.04,64bit.
After installation, I though the package should install the libraries and headers to /usr, but I can't find any libraries or headers.
Then I dpkg -L libopencv-dev, get those info:
igsrd#~>sudo dpkg -L libopencv-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libopencv-dev
/usr/share/doc/libopencv-dev/copyright
/usr/share/OpenCV
/usr/share/OpenCV/OpenCVModules.cmake
/usr/share/OpenCV/OpenCVConfig-version.cmake
/usr/share/OpenCV/OpenCVModules-release.cmake
/usr/share/OpenCV/OpenCVConfig.cmake
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/opencv_createsamples.1.gz
/usr/share/man/man1/opencv_haartraining.1.gz
/usr/share/man/man1/opencv_performance.1.gz
/usr/share/man/man1/opencv_traincascade.1.gz
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/opencv.pc
/usr/bin
/usr/bin/opencv_traincascade
/usr/bin/opencv_createsamples
/usr/bin/opencv_haartraining
/usr/bin/opencv_performance
/usr/share/doc/libopencv-dev/changelog.Debian.gz
Is that mean the package doesn't have any libraries or headers?
It shouldn't be that situation, right?
libopencv-dev is, as it's package description says, a meta package. It has dependencies to a number of packages that do contain the necessary libraries and header files, such as libopencv-core-dev, libopencv-imgproc-dev and so on.
Since dependencies are automatically installed, you indirectly have all you need. This is a standard pattern in packaging so you can either pick exactly the components you need or simply install the meta package.
If you are not sure, install libopencv-dev.

Gtest_main _dir not found while installing libqi for ros-nao

I am trying to install libqi for nao-ros and it gives me error: I already have gtest package but gtest_main is missing.
CMake Error at /home/shruti/d-prefix/share/cmake/qibuild/internal/uselib.cmake:80 (find_package): By not providing "FindGTEST_MAIN.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "GTEST_MAIN", but CMake did not find one.
Could not find a package configuration file provided by "GTEST_MAIN" with any of the following names:
GTEST_MAINConfig.cmake
gtest_main-config.cmake
Add the installation prefix of "GTEST_MAIN" to CMAKE_PREFIX_PATH or set "GTEST_MAIN_DIR" to a directory containing one of the above files. If "GTEST_MAIN" provides a separate development package or SDK, be sure it has been installed.
Any one knows about it?
I had the same problem when trying to build libqi and fixed it by:
cd /usr/share/cmake-3.0/Modules
ln -s FindGTest.cmake FindGTEST_MAIN.cmake

ruby on rails uninstall manually

I have big problems in uninstalling ruby in ubunty.
I'm following https://stackoverflow.com/a/9618017/1796624 and when I try
aptitude purge <package name>
I get:
E: I wasn't able to locate a file for the ttf-mscorefonts-installer package. This might mean you need to manually fix this package.
E: I wasn't able to locate a file for the ttf-mscorefonts-installer package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download
How to completely remove rails and ruby, where can I find the ttf-mscorefonts-installer package and now to manually fix it ?
ttf-mscorefonts-installer - is a package for install Microsoft TrueType fonts, this package no influence on rails.
Problem in your apt-get utility.

Unsupported HDF5 version

Trying to install Pytables, and I've installed almost all dependencies:
However, when I'm trying to install pytables:
* Found numpy 1.7.0b1 package installed.
* Found numexpr 2.0.1 package installed.
* Found Cython 0.16 package installed.
* Found HDF5 headers at ``/home/xug/pytables/hdf5/include``, library at ``/home/xug/pytables/hdf5/lib``.
.. ERROR:: Unsupported HDF5 version!
What does "unsupported HDF5 version" mean?
Although the author of the question has answered it in the comment, I think it is appropriate to have the (perhaps a bit more verbose) answer here too.
As mentioned, the problem is caused by a wrong (or lacking) systemwide version of HDF5 libraries. In my case, I solved it by compiling a newer version and installing it locally:
$ wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.11.tar.bz2
$ tar xjvf hdf5-1.8.11.tar.bz2
$ cd hdf5-1.8.11
$ configure --prefix=~/localroot
$ make -j 8
$ make install
It is then necessary to specify the path to this local installation before compiling package:
$ export HDF5_DIR=~/localroot
$ pip install tables
Finally, ~/localroot/lib must be in LD_LIBRARY_PATH for PyTables to work, so I added the line
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/localroot/lib
to ~/.bashrc

Resources