I'm trying to install ImageMagick by using MacPorts. I've successfully installed MacPorts by using their Mountain Lion .pkg file.
I open the terminal and run:
sudo port install ImageMagick
However what I get is:
Error: Unable to execute port: Could not open file: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/ImageMagick/Portfile
Although the error message doesnt contain "permission denied", I tried setting Portfile
and its first parent folder to 777
. And this obviously didn't solve my problem.
I have the latest Xcode installed.
Answer
You need to give the user macports read access to /opt
in Finder choose "Go" -> "Go to Folder..."
type /opt
and click "Go"
in Finder choose "File" -> "Get Info"
click the little padlock
icon in the lower right corner of the "opt Info" windowenter your password
(or the username and password of an administrator) and click "OK"
click the little plus
in the lower left of the "opt Info" window
choose MacPorts
from the list and click "Select"
try again sudo port install ImageMagick
No comments:
Post a Comment