Page 1 of 1

Permission issues with ImageMagick uninstallation

Posted: 2012-10-01T16:12:47-07:00
by Cluster
Hi there,
I'm really frustrated now. I tried a lot of things to get ImageMagick running. First there were some troubles with PHP, then I found out that ImageMagick does throw some errors. I found no solutions (I did not change anything on ImageMagick) I decided to remove ImageMagick from the server.
But not even this seems to work :/

Code: Select all

x@srv01 /usr/local/src/ImageMagick-6.7.9-9 # sudo make uninstall
throws following lines:

Code: Select all

 ( cd '/usr/local/bin' && rm -f animate compare composite conjure convert display identify import mogrify montage stream )
 ( cd '/usr/local/bin' && rm -f Magick-config MagickCore-config Wand-config MagickWand-config )
 ( cd '/usr/local/etc/ImageMagick/' && rm -f coder.xml colors.xml delegates.xml log.xml magic.xml mime.xml policy.xml quantization-table.xml thresholds.xml type.xml type-dejavu.xml type-ghostscript.xml type-windows.xml )
 ( cd '/usr/local/share/ImageMagick-6.7.9' && rm -f english.xml francais.xml locale.xml )
 ( cd '/usr/local/lib/ImageMagick-6.7.9/config' && rm -f configure.xml )
 ( cd '/usr/local/share/doc/ImageMagick-6.7.9' && rm -f LICENSE ChangeLog NEWS.txt )
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/libMagickCore.la'
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/libMagickWand.la'
rm -f /usr/local/include/ImageMagick/magick/magick-config.h
tests/*_out.*
/bin/bash: tests/drawtest_out.miff: Permission denied
make: *** [magick-uninstall-local] Error 126
I already tried to change the permissions, but this had no effects. I'm very confused to get a Permission denied problem even with root rights :/

Please help!
Thank you!

Re: Permission issues with ImageMagick uninstallation

Posted: 2012-10-02T02:30:35-07:00
by Cluster
After playing a bit with the permissions of the src folder ImageMagick-6.7.9-9 I finally get this errors now...

Code: Select all

 make uninstall
 ( cd '/usr/local/bin' && rm -f animate compare composite conjure convert display identify import mogrify montage stream )
 ( cd '/usr/local/bin' && rm -f Magick-config MagickCore-config Wand-config MagickWand-config )
 ( cd '/usr/local/etc/ImageMagick/' && rm -f coder.xml colors.xml delegates.xml log.xml magic.xml mime.xml policy.xml quantization-table.xml thresholds.xml type.xml type-dejavu.xml type-ghostscript.xml type-windows.xml )
 ( cd '/usr/local/share/ImageMagick-6.7.9' && rm -f english.xml francais.xml locale.xml )
 ( cd '/usr/local/lib/ImageMagick-6.7.9/config' && rm -f configure.xml )
 ( cd '/usr/local/share/doc/ImageMagick-6.7.9' && rm -f LICENSE ChangeLog NEWS.txt )
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/libMagickCore.la'
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/libMagickWand.la'
rm -f /usr/local/include/ImageMagick/magick/magick-config.h
tests/*_out.*
tests/drawtest_out.miff: line 7: rendering-intent=Perceptual: command not found
tests/drawtest_out.miff: line 9: red-primary=0.64,0.33: command not found
tests/drawtest_out.miff: line 10: white-point=0.3127,0.329: command not found
tests/drawtest_out.miff: line 11: date:create=2012-10-02T00:07:31+02:00: command not found
tests/drawtest_out.miff: line 12: date:modify=2012-10-02T00:07:31+02:00: command not found
tests/drawtest_out.miff: line 13:
: command not found
tests/drawtest_out.miff: line 14: :ÿÿÿÐÿÿþÿöíÿáÄÿÁÿ¶mÿºuÿ¾}ÿÂ
ÿâÅÿùòÿÿÿÿÿÿÿwÿÿÿÿÿÿÎÿþþÿÔ¨ÿ: command not found
tests/drawtest_out.miff: line 15: úõÿÿ: command not found
tests/drawtest_out.miff: line 18: *Ìi6ÏrBÒzNÕY×cÚnÜxß¡á¨ã¯åµç»¥éÁ¬ëÇ´íÌ»ïÑÂðÖÈòÛÎóßÔõãÚöçß÷êãøíçùðëúóïûõòüøõýùøýýüþÿÿÿÿÿÿÿÿÿÄÿÿÿÿ°: command not found

and so on...
I don't think I can fix this anymore, is there a way to completely uninstall ImageMagick by hand?

Thank you!

Re: Permission issues with ImageMagick uninstallation

Posted: 2012-10-02T15:21:30-07:00
by fmw42
I am not a unix expert, but see http://www.imagemagick.org/script/advan ... .php#build and the section on problems

Re: Permission issues with ImageMagick uninstallation

Posted: 2012-10-11T13:41:21-07:00
by yayyy
I have the same problems with ImageMagick-6.7.9-10'

Did you have any luck yet?

Re: Permission issues with ImageMagick uninstallation

Posted: 2012-10-11T14:03:17-07:00
by fmw42
I am not sure sudo make uninstall will remove all files. You may still have multiple parts of different versions of IM installed in different places.

Re: Permission issues with ImageMagick uninstallation

Posted: 2012-10-16T17:04:46-07:00
by anthony
This is the list of commands I use to force a complete clean...

But Please check thoroughly what files will be removed, and look for others as things do change, and I have not needed to use this list for some time due to my use of the package management system.

Code: Select all

  rm -rf /usr/lib/ImageMagick-*
  rm -rf /usr/lib/lib{Magick,Wand}*
  rm -rf /usr/share/ImageMagick-*
  rm -rf /usr/share/doc/ImageMagick-*
  rm -rf /usr/include/{ImageMagick,Magick++,magick,wand}
  rm -rf /usr/lib/perl5/site_perl/*/i386-linux-thread-multi/Image/Magick*
  rm -rf /usr/lib/perl5/site_perl/*/i386-linux-thread-multi/auto/Image/Magick*
  rm -rf /usr/share/man/man?/*Magick*
  rm -f /usr/lib/pkgconfig/ImageMagick.pc
A good way of looking for files is to search using the "locate" command under linux, though it can be a little slow to update its file list database when you make changes.