Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
For when you need to rebuild curl
#!/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
@benlk

This comment has been minimized.

Copy link
Owner Author

@benlk benlk commented Feb 11, 2015

'Are you stealing those LCDs?' 'Yeah, but I'm doing it while my code compiles.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment