2016-11-08 3 views
2

を私はMacOSのシエラ・システム上にCライブラリをコンパイルしたいが、私は次のエラーを取得しています:Mac OSのシエラ:Cコンパイラが動作するかどうかをチェックしません...何

checking for a BSD-compatible install... /usr/local/bin/ginstall -c 
checking whether build environment is sane... yes 
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p 
checking for gawk... no 
checking for mawk... no 
checking for nawk... no 
checking for awk... awk 
checking whether make sets $(MAKE)... yes 
checking whether make supports nested variables... yes 
checking for gcc... clang 
checking whether the C compiler works... no 
configure: error: in `/Users/macuser/Downloads/libr': 
configure: error: C compiler cannot create executables 

私はシンボリックリンクを設定してみましたOS X 10.9.2: checking whether the C compiler works... noで提案されているように:

export CC=clang 
xcode-select --install 

sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeD‌​efault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.‌​11.xctoolchain 

私はhttps://apple.stackexchange.com/questions/216573/cant-compile-source-code-on-macのようにXcodeのをCCパスを設定してインストールしてみました

をダウンロードし、ライセンスに同意します。しかし何も働かなかった。コマンドラインツールが正しく動作するようにSierraで検討する新しいステップはありますか?

答えて

1

Xcodeを起動し、「環境設定」、「場所」を選択します。 「コマンドラインツール」にドロップダウンコントロールが表示されます。最新バージョンを選択し、ダイアログウィンドウを閉じてから、再度brewを呼び出します。コンピュータを再起動してもう一度実行してください。

+1

私はSSHを使ってMacosに接続していますが、コマンドラインからあなたが言ったことをどうすればできますか? – SebMa

関連する問題