Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.62 KB

environments.md

File metadata and controls

31 lines (26 loc) · 1.62 KB

環境構築

  • 2020年1月5日版。

macOS

動作確認方法

ターミナルから gcc --version と実行。以下のように Apple clang のバージョンが出力されるならOK。

(base) oct:tnal% gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

インストールされていない(Command not foundのようにエラーが出て、バージョン番号が出力されない)ならば、下記いづれかの方法でインストールしよう。インストール後、動作確認すること。

  • case 1: command line developer tools のインストール。
    • xcode-select --install と実行し、command line developer toolsをインストールしよう。
  • case 2: brewでgccのインストール。
    • brew install gcc

Windows