Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#44107 closed defect (invalid)

port command not functioning in yosemite

Reported by: krishnan1994@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.0
Keywords: Cc:
Port:

Description (last modified by neverpanic (Clemens Lang))

When I try running any port command (so self update, even version flags don't work), I get the following error:

Error: Current platform "darwin 14" does not match expected platform "darwin 13"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
    while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

I tried downloading the yosemite deployment target patch to llvm 3.4 but it doesn't do anything. To be honest I have no idea what's going on, I've scanned a lot of the web and can't seem to find any answers to my problem. And uninstalling and reinstalling macports is a challenge because my port command doesn't work.

Change History (4)

comment:1 Changed 10 years ago by neverpanic (Clemens Lang)

Component: portsbase
Description: modified (diff)
Resolution: invalid
Status: newclosed

You must re-install MacPorts in a version configured for Yosemite. Since we don't have a binary installer for Yosemite, you'll have to build MacPorts from source to do that.

See wiki:Migration#ReinstallMacPorts and https://www.macports.org/guide/#installing.macports.source.

comment:2 in reply to:  1 ; Changed 10 years ago by coliban

Replying to cal@…:

You must re-install MacPorts in a version configured for Yosemite. Since we don't have a binary installer for Yosemite, you'll have to build MacPorts from source to do that.

See wiki:Migration#ReinstallMacPorts and https://www.macports.org/guide/#installing.macports.source.

Hello,

if port is broken, then you are not able to do deinstall port, as it is recommended in the link you provided here. May this is a catch 22 situation?

Regards

comment:3 in reply to:  2 Changed 10 years ago by larryv (Lawrence Velázquez)

Replying to coliban@…:

if port is broken, then you are not able to do deinstall port, as it is recommended in the link you provided here.

The link says to reinstall MacPorts before uninstalling any ports, which is exactly what the OP should do.

comment:4 in reply to:  2 Changed 10 years ago by prabackar@…

Thanks this helped fix my problem!

Replying to coliban@…:

Replying to cal@…:

You must re-install MacPorts in a version configured for Yosemite. Since we don't have a binary installer for Yosemite, you'll have to build MacPorts from source to do that.

See wiki:Migration#ReinstallMacPorts and https://www.macports.org/guide/#installing.macports.source.

Hello,

if port is broken, then you are not able to do deinstall port, as it is recommended in the link you provided here. May this is a catch 22 situation?

Regards

Note: See TracTickets for help on using tickets.