How to install ImageMagick via Build
First, make sure you have GIT installed:
sudo apt install git -y
Now clone the ImageMagick GIT repository.
sudo git clone https://github.com/ImageMagick/ImageMagick.git /usr/local/src/ImageMagick
Note, depending on how you set your GIT/user privilege setup, you may need to use the sudo command.
Next, CD into the directory.
cd /usr/local/src/ImageMagick
Now install the dependencies required.
sudo apt install make build-essential automake libltdl-dev -y
Next, run the ./configure command as follows.
sudo ./configure
Advanced users want more from ImageMagick, and it is recommended to use –with-modules build.
sudo ./configure --with-modules
Now that you have built and configured the environment, it is time to compile it with the command make.
sudo make
A handy trick is to specify the -j <number of cpu> as this can significantly increase compiling speed if you have a powerful server.
For example, the LinuxCapable server has 6 CPUs, and I can use all 6 or at least use 4 to 5 to increase speed.
sudo make -j 6
After compiling the source code, now run the installation command in your terminal:
sudo make install
After the installation, you need to configure the dynamic linker run-time bindings:
sudo ldconfig /usr/local/lib
Directly verify the installation and build:
magick --version
If you need assistance with your projects feel free to email me at info@airgad.com or whatsapp Jesse stay safe!