Skip to content

Instantly share code, notes, and snippets.

@doegox
Created October 28, 2016 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doegox/3ac08fbc0786b1fe8b9520b4ffa08816 to your computer and use it in GitHub Desktop.
Save doegox/3ac08fbc0786b1fe8b9520b4ffa08816 to your computer and use it in GitHub Desktop.
Recompiling socat with readline support
# For socat v1
sudo apt-get build-dep socat/testing
sudo apt-get install libreadline-dev
apt-get source -t testing socat
cd socat-1.7.3.1
sed -i 's/ -- --disable-readline//' debian/rules
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i socat_1.7.3.1-1_amd64.deb
# For socat v2 (from experimental)
sudo apt-get build-dep socat/experimental
sudo apt-get install libreadline-dev
apt-get source -t experimental socat
cd socat-2.0.0~beta9
sed -i 's/ -- --disable-readline//' debian/rules
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i socat_2.0.0~beta9-1_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment