port install failed

Ryan Schmidt ryandesign at macports.org
Sun Jan 1 15:26:40 PST 2012


On Jan 1, 2012, at 17:17, Shiyuan wrote:

>      I get an error when I try to do 
>      sudo port install emacs
>  the error is :
> Error: Unable to execute port: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_emacs/emacs/work/.macports.emacs.state": permission denied
> 
> I check the permission which is : -rw-r--r--  root. 
> But I notice the file size is 0. 
> 
> What could go wrong? Thanks. 

It sounds like the ownership is wrong.

Did you perhaps initially "port install emacs" (without "sudo"), then try again with "sudo"? Remember to always use "sudo" from the beginning.

Try cleaning both with and without "sudo" before trying again:

port clean emacs
sudo port clean emacs




More information about the macports-users mailing list