Skip to content

Instantly share code, notes, and snippets.

@benlk
Last active September 9, 2018 03:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benlk/67d68631fce3d63505da to your computer and use it in GitHub Desktop.
Save benlk/67d68631fce3d63505da to your computer and use it in GitHub Desktop.
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
Copy link
Author

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