3

When I try to run

convert file.bmp file.jpg

I get the following error message:

convert: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory

I tried looking for that library in synaptic, but I could not identify any package, that provides libg2c.so.0. In How do I install libg2c it is stated somewhere in the comments that this library is not in the repositories since Hardy.

Why does a standard tool like convert, that is shipped with imagemagick, depend on that library when it is not available any more?

Therefore should I try to find the library and install it? Or is this tool obsolete by now? (Why is it still in the repositories?) Is there any workaround to using convert again? Is there any command line tool with the same functionality as an alternative?

I am running Ubuntu 12.04.4 LTS with XFCE 4.8 inside a virtual machine.

3

1 Answer 1

1

convert does not depend on libg2c. Try re-installing:

apt-get purge imagemagick
apt-get install imagemagick
3
  • I tried that without improvement. May 7, 2014 at 13:18
  • What is the output of which convert? and ls -l /etc/alternatives/convert and ldd $(which convert) and update-alternatives --display convert?
    – bain
    May 7, 2014 at 13:23
  • That was exactly the problem, it points to the wrong executable. May 7, 2014 at 14:43

You must log in to answer this question.

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