ฉันเป็นมือใหม่ของผู้ใช้ Mac ฉันสามารถดูมีgcc, gitฯลฯ ใน " /usr/binโฟลเดอร์" แต่เมื่อฉันต้องการใช้พวกเขามันแจ้งเช่นนี้:
MacBook-Pro:~ nan$ git
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
MacBook-Pro:~ nan$ gcc
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
มันหมายความว่าฉันต้องติดตั้งxcodeเพื่อใช้งานgccหรือgitขอบคุณมากล่วงหน้า!
/usr/bin/gitโทรxcode-selectที่ให้ข้อผิดพลาดดังนั้น/usr/bin/gitอาจเป็นเพียง wrapper ที่เลือกจากเวอร์ชันเครื่องมือของนักพัฒนาซอฟต์แวร์ที่ติดตั้ง ดูที่ส่วนไฟล์ของdeveloper.apple.com/library/mac/documentation/Darwin/Reference/