Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15930 closed enhancement (invalid)

Error: Unable to execute port: can't create directory "/opt/local/var/macports/build": permission denied

Reported by: batchelordb@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: base Version: 1.6.0
Keywords: Cc:
Port:

Description

This is my first attempt to install a port. Things like "port list", "port search" and "port info" work fine. What I tried was: ~ $ port install -v pgplot +darwin_i386 +aqt +demos

and what I got was: Error: Unable to execute port: can't create directory "/opt/local/var/macports/build": permission denied

I guess the permissions are set wrong. But I hesitate to tinker with them since the /opt directory and its subdirectories are installed by MacPorts.

I looked in FAQ but didn't find anything.

Change History (3)

comment:1 Changed 16 years ago by pmagrath@…

Component: portsbase
Milestone: MacPorts base enhancements
Priority: NormalLow
Type: defectenhancement

As per http://guide.macports.org/#using.port.install, you need to run port install commands with sudo. So, "sudo port install -v pgplot +darwin_i386 +aqt +demos".

Maybe this should be made clear in the error message when port install is invoked and runs into permissions errors like this?

comment:2 Changed 16 years ago by febeling@…

Resolution: invalid
Status: newclosed

I think we should simply close such issues, it should be reasonably clear that you need superuser rights to install software, and for shell commands that's sudo.

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.