Raspberry Pi/Git Gnutls Error: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
* build git from source with openssl:
* build git from source with openssl:
<blockquote>
<blockquote>
<pre>
<syntaxhighlight lang="bash">
sudo bash
sudo apt update
apt update
sudo apt install build-essential fakeroot dpkg-dev  
apt install build-essential fakeroot dpkg-dev libcurl4-openssl-dev
sudo apt build-dep git
apt build-dep git
sudo apt install libcurl4-openssl-dev
 
mkdir ~/git-openssl
mkdir ~/git-openssl
cd ~/git-openssl
cd ~/git-openssl
apt-get source git
apt source git
dpkg-source -x git_1.7.9.5-1.dsc
ls -l
cd git-1.7.9.5
 
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


</pre>
cd ..
sudo dpkg -i git_*.deb
</syntaxhighlight>
</blockquote>
</blockquote>

Latest revision as of 17:13, 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 
sudo apt build-dep git
sudo apt install libcurl4-openssl-dev

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

cd ..
sudo dpkg -i git_*.deb