Raspberry Pi/Git Gnutls Error: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 6: Line 6:
sudo apt install build-essential fakeroot dpkg-dev libcurl4-openssl-dev
sudo apt install build-essential fakeroot dpkg-dev libcurl4-openssl-dev
sudo apt build-dep git
sudo apt build-dep git
mkdir ~/git-openssl
mkdir ~/git-openssl
cd ~/git-openssl
cd ~/git-openssl
apt source git
apt source git
ls -l
ls -l
cd git-*
cd git-*
sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control
sed -i -- '/TEST\s*=\s*test/d' ./debian/rules
dpkg-buildpackage -rfakeroot -b


find .. -type f -name "git_*ubuntu*.deb" -exec sudo dpkg -i \{\} \;
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 13:10, 1 February 2018

  • enable sources in /etc/apt/sources.list
  • build git from source with openssl:
sudo apt update
sudo apt install build-essential fakeroot dpkg-dev libcurl4-openssl-dev
sudo apt build-dep git

mkdir ~/git-openssl
cd ~/git-openssl
apt source git
ls -l

cd git-*
sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control
sed -i -- '/TEST\s*=\s*test/d' ./debian/rules
dpkg-buildpackage -rfakeroot -b

find .. -type f -name "git_*ubuntu*.deb" -exec sudo dpkg -i \{\} \;