Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #15930 (closed enhancement: invalid)

Opened 5 months ago

Last modified 5 months ago

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: MacPorts base enhancements
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

Changed 5 months ago by pmagrath@…

  • priority changed from Normal to Low
  • type changed from defect to enhancement
  • component changed from ports to base
  • milestone set to MacPorts base enhancements

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?

Changed 5 months ago by febeling@…

  • status changed from new to closed
  • resolution set to invalid

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.

Note: See TracTickets for help on using tickets.