Skip to content

Instantly share code, notes, and snippets.

@davidwebca
Last active December 17, 2024 14:50
Show Gist options
  • Save davidwebca/eb1ef4c28a55258b7cac2e626991e260 to your computer and use it in GitHub Desktop.
Save davidwebca/eb1ef4c28a55258b7cac2e626991e260 to your computer and use it in GitHub Desktop.

Revisions

  1. davidwebca revised this gist Nov 30, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-curl.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ cd curl-8.4.0

    ./configure -q --prefix=/usr/local --with-libssh2=$(brew --prefix libssh2) --with-ssl=$(brew --prefix openssl)
    sudo make
    make install
    sudo make install

    # If needed
    # echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.zshrc
  2. davidwebca revised this gist Nov 30, 2023. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions install-curl.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    sudo rm /usr/local/bin/curl
    sudo rm /usr/local/bin/curl-config

    xcode-select --install
    # If needed
    # xcode-select --install
    brew install git brotli git-ftp openssl libssh2

    brew uninstall --ignore-dependencies curl
    @@ -13,5 +14,6 @@ cd curl-8.4.0
    sudo make
    make install

    echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.zshrc
    echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.bash_profile
    # If needed
    # echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.zshrc
    # echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.bash_profile
  3. davidwebca created this gist Nov 29, 2023.
    17 changes: 17 additions & 0 deletions install-curl.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    sudo rm /usr/local/bin/curl
    sudo rm /usr/local/bin/curl-config

    xcode-select --install
    brew install git brotli git-ftp openssl libssh2

    brew uninstall --ignore-dependencies curl
    curl https://curl.se/download/curl-8.4.0.zip --output curl.zip
    unzip curl.zip
    cd curl-8.4.0

    ./configure -q --prefix=/usr/local --with-libssh2=$(brew --prefix libssh2) --with-ssl=$(brew --prefix openssl)
    sudo make
    make install

    echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.zshrc
    echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.bash_profile