Last active
September 9, 2018 03:52
-
-
Save benlk/67d68631fce3d63505da to your computer and use it in GitHub Desktop.
For when you need to rebuild curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# copied from http://zeroset.mnim.org/2013/03/14/sftp-support-for-curl-in-ubuntu-12-10-quantal-quetzal-and-later/ | |
mkdir /tmp/curl | |
cd /tmp/curl | |
sudo apt-get update | |
sudo apt-get install build-essential debhelper libssh2-1-dev | |
apt-get source curl | |
sudo apt-get build-dep curl | |
cd curl-* | |
dpkg-buildpackage | |
cd .. | |
dpkg -l | grep curl | |
echo "Now you need to reinstall /tmp/curl_7.* and /tmp/libcurl3_* " | |
echo "You may also want to copy the built packages someplace safe, to save time" | |
# This will reinstall the curl and libcurl dependencies. Yes, you need to reinstall libcurl as well. | |
# dpkg -i curl_7*.deb | |
# dpkg -i libcurl3_*.deb |
Author
benlk
commented
Feb 11, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment