Tôi là người mới sử dụng máy Mac. Tôi có thể thấy có gcc, git, vv trong " /usr/bin" thư mục. Nhưng khi tôi muốn sử dụng chúng, nó sẽ nhắc như sau:
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.
Có nghĩa là tôi phải cài đặt xcodeđể sử dụng gcchoặc git, cảm ơn rất nhiều trước!
/usr/bin/gitcác cuộc gọixcode-selectgây ra lỗi, vì vậy/usr/bin/gitcó thể chỉ là một trình bao bọc chọn từ các phiên bản công cụ dành cho nhà phát triển đã cài đặt. Xem FILES phần của developer.apple.com/library/mac/documentation/Darwin/Reference/...