ObjectiveThe objective is to install ImageMagick 7 on Ubuntu 18.04 Linux.
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver Linux
- Software: - ImageMagick 7.0.7-38 or higher
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - given linux commands to be executed as a regular non-privileged user
InstructionsIn this article we will be compiling and installing the latest ImageMagick 7 on Ubuntu 18.04 Linux from source code. Firstly, we will install all compilation dependencies, followed by ImageMagick's source code compilation and subsequent installation.
Lastly, we will perform a check to see whether ImageMagick was installed correctly.
ImageMagick Compilation DependenciesFirst step is to install all compilation dependencies. This will allow us to compile ImageMagick. In most cases the installation of the
build-essentialpackage shold be sufficient.
However, I ran into some issues while doing a final installation check. Although installation of the
build-essentialpackage allows for a correct compilation, downloading full dependencies based on Ubuntu's
imagemagickpackage seem to be better way to go.
First, enable the source packages within the
/etc/apt/sources.listfile by uncommenting
deb-srcof Ubuntu's main repository as shown below:
The UAF Geophysical Institute, is looking for an experienced Linux Systems Analyst to join their team of research cyber infrastructure analysts and engineers. LOCATION: Fairbanks, Alaska, USA
$ sudo apt update $ sudo apt build-dep imagemagickNow it's time to download the ImageMagick source code.
Download ImageMagick Source filesAt this stage we are ready to download and extract the ImageMagick latest source code using the
wgetcommand and extract its content:
$ wget https://www.imagemagick.org/download/ImageMagick.tar.gz $ tar xf ImageMagick.tar.gz $ cd ImageMagick-7*
ImageMagick Compilation and InstallationWhile still in the ImageMagick's source code directory execute the
configurecommand to perform a compilation configuration and to make sure that all compilation dependencies are met:
makecommand to perform the compilation:
$ sudo make installThe above command will install all previously compiled ImageMagick binaries on your system. Run
ldconfigto link static libraries:
$ sudo ldconfig /usr/local/libAll done.
Confirm installation and final checkNow, we are ready to check the ImageMagick installation. Execute the
indentifycommand to confirm the installed version:
$ identify -version
$ make check