I have a non-root account on a Debian 9 (Stretch) System and I want to install Git.
Since the account does not have super-user privileges, Git can only be installed locally, as stated here.
Following the accepted answer, I downloaded and extracted the latest Git version in local home directory (~/) and then I enter the extracted Git folder like
$ cd git-2.33.1/
When I run
./configure --prefix=~/git-2.33.1/ && make && make install
I get ./configure: No such file or directory
.
Is there anything I can do?
I also checked the README
of git and when I run make
I get fatal error: openssl/ssl.h: No such file or directory #include <openssl/ssl.h>
2
Answers
This will be not very easy to have something working if dependencies are missing.
What you can do, download the
.deb
to get the last git version, you can find it https://debian.pkgs.org/11/debian-main-amd64/git_2.30.2-1_amd64.deb.htmlFor example:
Then extract it
You will get
Then extract the data part:
and you get the binaries
You don’t really need the
configure
script, but if you want it you can just saymake configure
and run that, if you’re having trouble finding ssl you can./configure --prefix=$HOME --without-openssl
.But all that script does is make some easy edits and the Makefile comes preconfigured to install in your home directory and has lots of comments up top explaining how to set yourself up. For instance,
so you can
and you’re all set up for
to build without openssl support and install to
$HOME
.