Permission issues with ImageMagick uninstallation

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Cluster
Posts: 2
Joined: 2012-10-01T16:06:33-07:00
Authentication code: 67789

Permission issues with ImageMagick uninstallation

Post 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!
Cluster
Posts: 2
Joined: 2012-10-01T16:06:33-07:00
Authentication code: 67789

Re: Permission issues with ImageMagick uninstallation

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Permission issues with ImageMagick uninstallation

Post by fmw42 »

I am not a unix expert, but see http://www.imagemagick.org/script/advan ... .php#build and the section on problems
yayyy
Posts: 1
Joined: 2012-10-11T13:38:12-07:00
Authentication code: 67789

Re: Permission issues with ImageMagick uninstallation

Post by yayyy »

I have the same problems with ImageMagick-6.7.9-10'

Did you have any luck yet?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Permission issues with ImageMagick uninstallation

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Permission issues with ImageMagick uninstallation

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply