我需要使用gdb。如何確定是否安裝了Xcode命令行工具?
ps-MacBook-Air:AcoustoExport pi$ gdb
-bash: gdb: command not found
ps-MacBook-Air:AcoustoExport pi$ sudo find/-iname "*gdb*"
Password:
/usr/local/share/gdb
/usr/local/Cellar/isl/0.12.1/share/gdb
:
和:
ps-MacBook-Air:AcoustoExport pi$ ls -la /usr/local/share/gdb
lrwxr-xr-x 1 pi admin 30 14 Jan 22:01 gdb -> ../Cellar/isl/0.12.1/share/gdb
不太知道該怎麼做這個,很明顯它是由自制軟件安裝的東西。我不知道爲什麼它在那裏,我不知道我是否可以使用它。它不在搜索路徑中。
所以我想我需要Xcode命令行工具。
Xcode is not currently available from the Software Update server
^我目前的問題完全一樣。對這個問題的評論說:「如果你已經有這個錯誤,你可以得到這個錯誤」
但是,如何檢查我是否已經擁有了它們?
嗯,我得到 '/Applications/Xcode.app/Contents/Developer' –
@Pi當你進入你明白了什麼$ GCC --version ? 你有這樣的東西: --prefix =/Library/Developer/CommandLineTools/usr --with-gxx-include-dir =/usr/include/C++/4.2.1 Apple LLVM 5.0版(clang-500.2 .79)(基於LLVM 3.3svn) –
不,我得到--prefix =/Applications/Xcode.app/Contents/Developer/usr。其餘部分與您的打印輸出相同。 –