ns3:linkrabbit administrator$ brew info curl curl: stable 7.58.0 (bottled), HEAD [keg-only] Get a file from an HTTP, HTTPS or FTP server https://curl.haxx.se/ /usr/local/Cellar/curl/7.51.0 (368 files, 2.6MB) Poured from bottle on 2016-11-21 at 15:29:25 /usr/local/Cellar/curl/7.56.1 (414 files, 3.0MB) Poured from bottle on 2017-11-08 at 11:37:40 /usr/local/Cellar/curl/7.58.0 (415 files, 3MB) Poured from bottle on 2018-02-09 at 10:38:12 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/curl.rb ==> Dependencies Build: pkg-config ✔ Optional: openssl ✔, rtmpdump ✘, libssh2 ✘, c-ares ✘, libmetalink ✘, nghttp2 ✘ ==> Options --with-c-ares Build with C-Ares async DNS support --with-gssapi Build with GSSAPI/Kerberos authentication support. --with-libmetalink Build with libmetalink support. --with-libssh2 Build with scp and sftp support --with-nghttp2 Build with HTTP/2 support (requires OpenSSL) --with-openssl Build with OpenSSL instead of Secure Transport --with-rtmpdump Build with RTMP support --HEAD Install HEAD version ==> Caveats This formula is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile For compilers to find this software you may need to set: LDFLAGS: -L/usr/local/opt/curl/lib CPPFLAGS: -I/usr/local/opt/curl/include For pkg-config to find this software you may need to set: PKG_CONFIG_PATH: /usr/local/opt/curl/lib/pkgconfig ns3:linkrabbit administrator$ #### export PATH="/usr/local/opt/curl/bin:$PATH" export CURL_CONFIG=/usr/local/Cellar/curl/7.58.0/bin/curl-config #### ns3:linkrabbit administrator$ sudo cpanp -i WWW::Curl::Easy Installing WWW::Curl::Easy (4.17) CPANPLUS::Dist::Build::Constants will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /System/Library/Perl/5.18/CPANPLUS/Dist/Build.pm, line 16. [ERROR] MAKE failed: "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- Curl.bs blib/arch/auto/WWW/Curl/Curl.bs 644 cc -c -I/usr/local/Cellar/curl/7.58.0/include -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" Curl.c In file included from Curl.xs:574: ./curlopt-constants.c:19:58: error: non-void function 'constant' should return a value [-Wreturn-type] if (strEQ(name, "DID_MEMORY_FUNC_TYPEDEFS")) return CURL_DID_MEMORY_FUNC_TYPEDEFS; ^ ./curlopt-constants.c:136:49: error: use of undeclared identifier 'CURL_STRICTER' if (strEQ(name, "STRICTER")) return CURL_STRICTER; ^ ./curlopt-constants.c:179:56: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'int' changes value from 18446744073709551615 to -1 [-Wconstant-conversion] if (strEQ(name, "ZERO_TERMINATED")) return CURL_ZERO_TERMINATED; ~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/curl/7.58.0/include/curl/curl.h:1969:31: note: expanded from macro 'CURL_ZERO_TERMINATED' #define CURL_ZERO_TERMINATED ((size_t) -1) ^~~~~~~~~~~ In file included from Curl.xs:574: ./curlopt-constants.c:2145:44: warning: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551599 to -17 [-Wconstant-conversion] if (strEQ(name, "ANY")) return CURLAUTH_ANY; ~~~~~~ ^~~~~~~~~~~~ /usr/local/Cellar/curl/7.58.0/include/curl/curl.h:708:32: note: expanded from macro 'CURLAUTH_ANY' #define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE) ^~~~~~~~~~~~~~~~~~~ In file included from Curl.xs:574: ./curlopt-constants.c:2146:48: warning: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551598 to -18 [-Wconstant-conversion] if (strEQ(name, "ANYSAFE")) return CURLAUTH_ANYSAFE; ~~~~~~ ^~~~~~~~~~~~~~~~ /usr/local/Cellar/curl/7.58.0/include/curl/curl.h:709:32: note: expanded from macro 'CURLAUTH_ANYSAFE' #define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Curl.xs:1100:26: warning: implicit conversion from enumeration type 'CURLINFO' to different enumeration type 'CURLoption' [-Wenum-conversion] curl_easy_setopt(easy, CURLINFO_PRIVATE, NULL); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/curl/7.58.0/include/curl/curl.h:2744:68: note: expanded from macro 'curl_easy_setopt' #define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param) ~~~~~~~~~~~~~~~~ ^~~ 4 warnings and 2 errors generated. make: *** [Curl.o] Error 1 [ERROR] Unable to create a new distribution object for 'WWW::Curl::Easy' -- cannot continue *** Install log written to: /Users/administrator/.cpanplus/install-logs/WWW-Curl-Easy-4.17-1518202859.log Error installing 'WWW::Curl::Easy' Problem installing one or more modules ns3:linkrabbit administrator$ #### brew install curl