Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm kinda new to those CLI installations so I don't know exactly what I'm doing I'm just following the installation steps of the guide:

I want to install Imagemagick on my Mac 10.5.8:

I typed ´sudo port install imagemagick´ and I got this error in return:

localhost:~ giorgio$ sudo port install imagemagick
--->  Computing dependencies for imagemagick
--->  Dependencies to be installed: ghostscript liblzma urw-fonts webp
--->  Building ghostscript
Error: Target returned: shell command failed (see log for details)
Error: Failed to install ghostscript
Log for ghostscript is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/main.log
Error: The following dependencies were not installed: ghostscript liblzma urw-fonts webp
Error: Status 1 encountered during processing.
To report a bug, see <>

I've also tried to look inside the main.log file, but I couldn't understand anything with my knowledges! I've pasted it here with the hope that you can help me:

Thanks in advance! Giorgio

share|improve this question
up vote 1 down vote accepted

:debug:main Privilege de-escalation not attempted as not running as root.

It seems from the error log that you aren't running as root even though you used sudo. You need to make sure you're in an admin account then use sudo port install imagemagick.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.