I need help installing imagick on xampp in ubuntu

Joined
Jan 3, 2025
Messages
1
Reaction score
0
im new to ubuntu or linux in general and I need help installing the imagick 8.2.12 and imagick php 8.2.12 extension to xampp.

I keep getting these errors:

When trying to install imagick using percl: ERROR: `make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootGaKlyc/install-imagick-3.7.0" install' failed.

i also PHP Warning:

PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /opt/lampp/lib/php/extensions/no-debug-non-zts-20220829/imagick.so (/lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var), /opt/lampp/lib/php/extensions/no-debug-non-zts-20220829/imagick.so.so (/opt/lampp/lib/php/extensions/no-debug-non-zts-20220829/imagick.get this error:

When i try to install imagemagick-dev i get this: E: Unable to locate package imagemagick-dev

When ever i check the version of imagemagick installed it shows: Version: ImageMagick 6.9.12-98 Q16 x86_64
 
Joined
Jan 10, 2025
Messages
1
Reaction score
0
Hi!


It sounds like you're having trouble installing the ImageMagick library and its PHP extension on XAMPP in Ubuntu. Here’s an easy way to fix it step by step:


  1. Install Required Packages:
    Open the terminal and run:
    sudo apt update
    sudo apt install imagemagick php-pear php-dev libmagickwand-dev -y

  2. Install the Imagick PHP Extension:
    Use this command to install the extension via PECL:
    sudo pecl install imagick

  3. Enable the Extension:
    Add imagick to PHP by running:
    echo "extension=imagick.so" | sudo tee -a /opt/lampp/etc/php.ini

  4. Restart XAMPP:
    Restart XAMPP to apply changes:
    sudo /opt/lampp/lampp restart

  5. Check Installation:
    Verify Imagick is installed by running:
    php -m | grep imagick

If you still see errors, try reinstalling ImageMagick with this command to ensure all dependencies are correct:

sudo apt install imagemagick libmagickwand-dev -y


Let me know if this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top