ImageMagick This isn't a compilation, however it is a prerequisit to installing the IMagick PHP extension. apt-get update && apt-get install -y \ imagemagick \ libmagickwand-dev \ libmagickcore-dev