How to get Imagemagick to use littlecms2 on WHM Centos 7 - imagemagick

I have Imagemagick running fine. However it is missing the lcms2 library that lets it utilise icc color profiles.So it was installed via RPM and also with for different versions of PHP with the PECL php wrapper. I have installed lcms2 also from RPM.
However imagemagick doesn't know anything about lcms2.
How can I add lcms2 delegate/library to my current imagemagick install?
Do I have to make my own build of imagemagick with flags to include lcms2? I hear lcms was removed from the Centos Imagemagick RPM due to security concerns.

Related

Possible to add imagick webp support for PHP in AWS Linux 2?

I'm running PHP 7.4 on an AWS Linux 2 instance. PHP 7.4 comes with imagick module 3.4.4 compiled by ImageMagick 6.9.10-6, but it doesn't have support for WEBP enabled.
I've installed the libwebp-devel library, but I can't figure out how to recompile the imagick module to support webp. I tried installing from the PECL source a la this comment, but when I check php -i WEBP still isn't listed under supported formats.
I also tried installing ImageMagick from source, and while I was able to get WEBP conversion going in the command line, the PHP extension still doesn't show support.
I'm not currently expert at PHP, but after reading this post Understanding PHP library installation and knowing some linux ecosystem, I think that after recompiling ImageMagick, you have to tell to the imagick module, that you have new version of ImageMagick. Or even recompile module (according to this site: https://help.dreamhost.com/hc/en-us/articles/217253537-Installing-ImageMagick-and-the-imagick-PHP-module-on-Shared-hosting).

How to setup ROS environment variable on Ubuntu 20.04?

I tried following this guide to install ROS, but even after adding ROS source.list and its key
sudo apt install ros-melodic-desktop-full
gave error.
E: Unable to locate package ros-melodic-desktop-full
Then I ran this command
sudo apt search ros
to see if any such package exists. I couldn't find ros-melodic-desktop-full but I found another similar package ros-desktop-full.
So I installed it instead. The installation went smooth without giving any errors.
Next step in the guide is to set-up ROS environment variable, but I have no such directory
/opt/ros
So how do I setup the environment variable?
P.S.
I also installed some tools and dependencies with this command
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
and initialized rosdep
sudo rosdep init
rosdep update
The ros-desktop-full package you installed is part of the official Ubuntu release.
ROS Melodic (and in the future, Noetic) is published by the OSRF in a separate repository (packages.ros.org). These packages install to /opt/ros/. However, some ROS packages have also been ported to Debian, which is how they found their way to Ubuntu (which derives from Debian).
The Debian packages are fully functional, but they do not install to /opt/ros. Instead, everything is integrated in the operating system itself. This means that you need to set up your personal workspace slightly differently.
Given that most tutorials assume that you use the OSRF packages, I suggest you either wait for the Noetic release (scheduled for the end of May 2020), then install ros-noetic-desktop-full, or downgrade to Ubuntu 18.04 LTS to use ROS Melodic.
From the documentation here, melodic is only supported on Ubuntu 18.04. The ROS version targeting Focal (20.04) is Noetic, but that one has not been released yet (see Distributions). I'm not sure what ROS version Ubuntu packages (the ros-desktop-full one you installed), but I was not successful in using it.
If you really do want to use Ubuntu 20.04, then I think your best option currently is to compile from source. Last time I checked the precompiled debs for Noetic are not yet available at http://packages.ros.org/ros/ubuntu (you can track release progress at github issue 21513). No idea if compiling Noetic from source is easy or hard, but I was able to compile ROS2 foxy from source without too much trouble though.

Install "Yum install httpd-devel" in a offline system

I'm trying to install "Yum install httpd-devel" in my system (RedHat/Fedora) but the system have no internet conection. I can download files from the internet and copy to the system, but I cant use internet on the system. I'm trying to install rails and i need " httpd-devel", " apr-devel" and "apr-util-devel".
For exemple, when i needed to use "gem install rails" I downloaded rails.gem and I used this file to install, there is a similar solution to my new problem? Thanks in advance
You can just download the package and then install it using rpm.
$ rpm -i [package-file]
Keep in mind that any package may require some extra dependencies, and you would need to download them all and install them by hand. It may get boring for packages with many dependencies.
To find the packages rpmfind is your friend: find the adequate package for your operating system (Fedora, Red Hat or whatever), download and check the dependencies. For example, package for Fedora 18 x86_64: you will need apr-devel and a few others. rpm will let you know if you are missing dependencies. Short of installing your own yum repository, you will have to download all dependencies by hand.

installing opencv 2.2 in a different directory

I had already installed opencv 2.4.2 on my ubuntu 12.04 lts system. But now I have such a situation that I should install opencv 2.2.0 also. I would like to keep opencv 2.4.2. Is it possible?
Reason: I should use econ ECAM32 usb web cam to take images using opencv program but opencv 2.4.2 is not supporting this cam. But opencv 2.2 is supporting this cam.
I would like to hear how we can install opencv 2.2 on system in any other directory, I would prefer on folder in home directory,so that installation should not damage opencv 2.4.2.
I don't see why not. ubuntu 12.04 has opencv 2.3 in it's repository therefore I'm assuming you have installed from the source. when you compile the source you should check ./configure --help first which would probably give you an option for installation directory. It usually looks like:
./configure --prefix=$HOME/opencv2.2
let me know how you proceed..

fftw3 delegate for ImageMagick

I installed fftw3 package for Ubuntu 11.10, then installed ImageMagick. While performing fft of images, i get following error
convert: delegate library support not built-in `framed_clown.jpg' (FFTW) # warning/fourier.c/ForwardFourierTransformImage/611.
there was no fftw delegate listed on
convert -list configure
how can i resolve this ??
I believe that uninstalling imagemagick, installing fftw and reinstalling IM afterwards should solve the problem.
For Windows users there are these precompiled binaries - http://blog.astrophotographytargets.com/2012/03/imagemagick-with-fftw-delegate-library-on-windows/

Resources