can't write to /var/folders

David Nicholls david at mso.anu.edu.au
Tue Dec 25 20:03:37 PST 2012


What happens if you prepend a 'sudo' ahead of the compile instruction?

DN

On 26/12/2012, at 2:59 PM, Robert Broome <robert.broome at softhome.net> wrote:

> I broke my install. :(
> I use gfortran installed via macports. I am currently at gcc46, with gcc45 installed to support fortran-netcdf.
> 
> When I try to compile a simple program (which has compiled on this machine several days ago), I get:
> gfortran -o sorttest sorttest.f95
> f951: fatal error: can’t open /var/folders/p8/s7gtynwj7_x___mlswzr7sp80000gn/T//ccnZNOg5.s for writing: Permission denied
> compilation terminated.
> 
> I don't know the implications of:
> 
> /T//filename 
> I don't see how one even creates that.
> 
> 
> Obviously there is a permission problem. 
> /var/folders/p8 is owned by root.
> drwxr-xr-x  5 rbroome  staff  170 Dec 25 20:53 s7gtynwj7_x___mlswzr7sp80000gn/p8   is owned by user (me).
> directory p8 contains:
> drwxr-xr-x  2 rbroome  staff   68 Dec 25 20:53 0   (this is a numeric 0, not a text O)
> drwx------  8 rbroome  staff  272 Dec 25 21:00 C
> drwx------  8 rbroome  staff  272 Dec 25 20:55 T
> 
> the contents of T is:
> ll  /var/folders/p8/s7gtynwj7_x___mlswzr7sp80000gn/T/
> total 8
> drwx------@ 2 rbroome  staff   68 Dec 25 20:47 Cleanup At Startup
> drwx------@ 3 rbroome  staff  102 Dec 25 20:56 com.apple.TextEdit
> drwx------@ 3 rbroome  staff  102 Dec 25 20:53 com.apple.mail
> -rw-------  1 rbroome  staff   59 Dec 25 20:23 xcrun_db
> 
> Can anyone give me a suggestion on what to do to solve this compile error?
> 
> thanks
> rbroome
> 
> 
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users



More information about the macports-users mailing list