On our Solano build image ubuntu14-chrome64 we install imagemagick in the pre_setup hook with the following command:

sudo apt-get update && sudo apt-get -y install imagemagick libmagickwand-dev graphviz libgraphviz-dev

But identify -version fails with

identify: error while loading shared libraries: libgvc.so.5: cannot open shared object file: No such file or directory

What is wrong with our imagemagick package installation there?


$ which identify

$ ldd $(which identify) | grep not
    libgvc.so.5 => not found
    libgraph.so.4 => not found


I did sudo rm /usr/local/bin/identify as @N0rbert advices but the error is left the same.

$ which identify

ldd $(which identify) | grep not outputs the same as in UPDATE 1

ls -lah /usr/bin/identify
/usr/bin/identify -> /etc/alternatives/identify

ls -lah /etc/alternatives/identify
/etc/alternatives/identify -> /usr/bin/identify.im6
  • 2
    Please add output of which identify, ldd $(which identify) | grep not to the question.
    – N0rbert
    Nov 23, 2018 at 12:02
  • @N0rbert I updated the question with the information you asked
    – Hirurg103
    Nov 23, 2018 at 12:54

1 Answer 1


You have self-compiled identify in /usr/local/bin/. Possibly from the time of 12.04 LTS release or similar.

You should remove it with

sudo rm /usr/local/bin/identify

and then you will be able to use normal one from the repository.

  • I did as you advised but the error remains the same. I updated the question
    – Hirurg103
    Nov 23, 2018 at 15:22
  • Then carefully navigate to all subfolders in /usr/local and remove/move ImageMagick stuff out the way.
    – N0rbert
    Nov 23, 2018 at 20:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .