Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

@i47_rozary

macportsの久しぶりのupdate(macバージョンアップ後、portが動かなくなった場合)

Error: Current platform "darwin 17" 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

macの容量がきつくなってきたので、いらないものを削除しようとしていたら
portが動かなくなっていた。

macのバージョンを上げていたから…。である。

ということで

こちらから適当なバージョンの物を落としてinstall。

ついでに。

sudo vi /opt/local/etc/macports/sources.conf

こちらを開いて、一番したの行を書き換える。

rsync://rsync.macports.org/release/tarballs/ports.tar [default]

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
1
Help us understand the problem. What are the problem?