Opened 8 years ago

Closed 8 years ago

#50109 closed defect (invalid)

Migrating Macports for El Capitan- reinstalling ports fails (permission denied)

Reported by: nilou.fgh.60@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: elcapitan Cc:
Port:

Description

Hi,

I have upgraded my MacBook Pro Retina from OS X Yosemite to OS X El Capitan. I used MacPorts version 2.3.4 with OS X Yosemite and it is installed on my Mac. Xcode 7.2 and the command line developer tools are installed. Following the instructions to upgrade MacPorts, I tried to save the list of the installed ports: (port -qv installed > myports.txt) but apparently the permissions of myports.txt do not allow to change the file. Do I simply change the permissions of myports.txt or is it due to a deeper issue?

Many thanks, Nilou.

Change History (3)

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

Keywords: elcapitan added; El Capitan removed
Type: updatedefect

Can you show us the exact transcript of what commands you typed and what error you got?

comment:2 Changed 8 years ago by nilou.fgh.60@…

Following (wiki:Migration) I typed

 port -qv installed > myports.txt

and got

 myports.txt: Permission denied.

Just tried it again from my home directory and do not get the message. The Permission denied message is when I run the command from the "/opt/local/etc/macports/" directory.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Resolution: invalid
Status: newclosed

Ok, that's completely normal. The command "port -qv installed > myports.txt" creates a file myports.txt in the current directory, so you need to have write permission in the current directory. /opt/local/etc/macports is not a directory where normal users have write permission, so that should not be your current directory when you run the command. Being in your home directory is a good choice.

Note: See TracTickets for help on using tickets.