LoginSignup
0
0

More than 1 year has passed since last update.

macOSで `ctype.h` が無いと言われた時

Last updated at Posted at 2022-07-13

個人的なメモ。

具体的な症状

  • とあるpythonパッケージを pip を通しインストールしようとした際に、下のように、 ctype.h が無いと言われた。
    • インストールしようとしたパッケージは、smt というパッケージ。
    • pythonは、homebrew を通し Miniforge でインストールした。
/opt/homebrew/Caskroom/miniforge/base/bin/../include/c++/v1/ctype.h:38:15: fatal error: 'ctype.h' file not found
      #include_next <ctype.h>
                    ^~~~~~~~~
      1 error generated.
      error: command '/opt/homebrew/Caskroom/miniforge/base/bin/clang' failed with exit code 1
      [end of output]

解決策

上記記事の様に、export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)" とすればよい。

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