LoginSignup
0
1

More than 5 years have passed since last update.

Mojaveにアップデートしてからやった事(暫定)

Posted at

背景

Mojaveに上げたら画面見辛くなったりgit使えなくなったり大変じゃー.
「よく分からないけど,これやったら解決したよ」ってのを載せます.

まずxcodeを再インストールしよう

恐らくgitもg++も何もかも使えなくなってると思います.
Google先生とbrew doctor先生に聞いた所,同じ回答を頂きました.
以下コマンドをターミナルで叩きます.

$ xcode-select --install

画面見辛いのを治す

フォント関係の設定が色々変わって見辛いので,以前のを復活させます.

$ defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO

g++でコンパイルしたら怒られる

wchar.hをコード内でincludeしなくても怒られます.

In file included from /usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/bits/postypes.h:40,
                 from /usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/iosfwd:40,
                 from /usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/ios:38,
                 from /usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/ostream:38,
                 from /usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/iostream:39,
                 from a.cpp:1:
/usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
 #include <wchar.h>
          ^~~~~~~~~
compilation terminated.

gccを再インスコしたら治りました.
brewを使っている方は以下コマンドでいけます.

$ brew reinstall gcc

おわりに

今後も色々とボロが出てくると思うので,発見次第追記します

関連記事

「macOS Mojave」でフォントが汚い・見づらい・ボヤける問題の対処法
CLionでwchar.hがないと言われ、コンパイルできなくなってしまいました。

0
1
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
1