NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: For HPCDATAMGM-952: Copied contents of the draft "Rebuilding curl on a Mac for DME CLU" page.

...

Show If
userfrostrs
groupGP-CFW-DMEDOC-DEV

Most Users Can Ignore the Following Information

If you want to use DME CLU on a Mac (version 10.12.4/10.12.6) and the version of curl on your machine is OpenSSL 0.9.8zh 14 Jan 2016, perform the following steps to rebuild curl. 

  1. From a terminal prompt, execute the following command: 

    Code Block
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)

    This command downloads and installs Homebrew, a package manager to download, build, and install Mac software.

  2. Follow the prompts. The system might request your username/password multiple times.

  3. Execute the following command:

    Code Block
    brew install curl --with-openssl

    This command invokes Homebrew to build and install curl in /usr/local/opt with the latest version of openssl. At the end of the installation, a message appears indicating that this is keg-only. It provides the command to update the PATH so that the system uses your new curl installation, rather than the Mac-supplied one. 

  4. Execute the command as provided at the end of curl installation, which should be the following command:

    Code Block
    export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile
  5. Confirm the installation: Open a new terminal and check the version of curl with the following command: 

    Code Block
    curl –-version

    The following information should appear: 

    Code Block
    curl 7.58.0 (x86_64-apple-darwin16.7.0) libcurl/7.58.0 OpenSSL/1.0.2n zlib/1.2.8
    Release-Date: <today’s date or the date you install your new curl>
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
    Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy