Apple이 제공하는 이전 7.24 대신 최신 버전의 cURL을 어떻게 얻을 수 있습니까?
user:~ kevinsimper$ curl --version
curl 7.31.0 (x86_64-apple-darwin12.4.0) libcurl/7.31.0 OpenSSL/0.9.8x zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz
Brew와 함께 설치할 때 술통 전용이라는 알림이 표시됩니다.
brew link curl --force
버전은 아직 7.24이지만 프로토콜이 업데이트되었습니다.
Kuser:~ kevinsimper$ curl --version
curl 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
user:~ kevinsimper$ which curl
/usr/bin/curl
그런 다음 “사과”컬을 삭제하면 기능을 실행할 수 없습니다.
user:~ kevinsimper$ curl --version
curl 7.31.0 (x86_64-apple-darwin12.4.0) libcurl/7.31.0 OpenSSL/0.9.8x zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz
user:~ kevinsimper$ brew install postgresql
==> Installing postgresql dependency: ossp-uuid
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
Error: /usr/bin/curl is not executable
답변
추가 export PATH=/usr/local/bin:$PATH
귀하의에 .bashrc
브루 함께 설치된 빈을 사용하는 예.