-
-
Save nrrb/f151cb634b09915b7c78 to your computer and use it in GitHub Desktop.
This file contains 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment