2013年1月17日木曜日

[CodeRunner]C言語のコンパイルエラーの対処の仕方


CodeRunnerでC言語のコードを実行するとエラーが発生する。
以下のようなエラーが出てしまった。

/Users/idac/Library/Application Support/CodeRunner/Languages/2/compile.sh: line 37: clang: command not found
To run code in this language, you need to have compilers installed. These are bundled with Xcode which can be downloaded through the Mac App Store or Apple's developer site.
If you are using Xcode 4.3 or later, you need to open Xcode preferences, select the Downloads pane, and choose to install 'Command Line Tools'. This may require an Apple developer account, which is free.

原因はClangコマンドが無いこと。
Xcodeのコマンドラインツールをインストールすれば解決できた。




0 件のコメント:

コメントを投稿