LoginSignup
0
0

More than 5 years have passed since last update.

MacPCのアップデートでgcc/g++が使えなくなった時の対処法

Posted at

MacPCをUpdateした事でコンパイラがなんか使えない.......

which g++

その結果

/usr/local/bin/gcc

と表示される

sudo ln -sf /opt/local/bin/g++  /usr/local/bin/g++

ln コマンド : ファイルやディレクトリにリンクを張る
-s : シンボリック・リンクを作成する
-f : リンク先に同名のリンク・ファイルがあるときも警告なく上書きする

which g++

その結果

/usr/bin/g++

Updateでコマンド・ラインが使えなくなった時はぜひぜひ上の条件を試してみてください(^^)/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0