Opened 10 years ago

Closed 10 years ago

#41932 closed defect (worksforme)

Mavericks 10.9 - Could not open Portfile

Reported by: mkbriney@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When I try and install anything using sudo port install xxx I get the following error:

Error: Unable to execute port: Could not open file: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/sysutils/xxx/Portfile

I am running the latest version of MacPorts (2.2.1) on OSX 10.9.1. I have tried performing a sync of the sources tree, even in debug mode.

Attachments (1)

debug.txt (573 bytes) - added by mkbriney@… 10 years ago.
Debug log

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by mkbriney@…

Attachment: debug.txt added

Debug log

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Sounds like the permissions of your ports tree are incorrect. No idea why that would be, but you'll need to fix them. Reasonable permissions would be for directories to be 755 and files to be 644, so you could run:

sudo echo
find /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports -type d -print0 | xargs -0 sudo chmod 755
find /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports -type f -print0 | xargs -0 sudo chmod 644

comment:2 Changed 10 years ago by mkbriney@…

Permissions are still resulting in the same problem. I even set the permissions to everything in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports to be 777 for folders and files and still the same error message applies.

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Look at the permissions of all of the directories leading up to the problem file. They must all be set so that the macports user can read them (i.e. 755). So, check /opt, /opt/local, /opt/local/var, etc.

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.