As a non-root user, I want to install git
(version = 2.38.1-1) on a shared host CentOS 7 server because the original version of git
on the host is too old. I tried to use the method in this answer to install git
from the file git-2.38.1-1.ep7.x86_64.rpm
.
- I use
wget
command to download filegit-2.38.1-1.ep7.x86_64.rpm
on the host. - I use command
rpm -ivh git-2.38.1-1.ep7.x86_64.rpm
to check whether some dependencies are lack. The output is as follow.
And I downloadwarning: git-2.38.1-1.ep7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 703df089: NOKEY error: Failed dependencies: git-core = 2.38.1-1.ep7 is needed by git-2.38.1-1.ep7.x86_64 git-core-doc = 2.38.1-1.ep7 is needed by git-2.38.1-1.ep7.x86_64 perl-Git = 2.38.1-1.ep7 is needed by git-2.38.1-1.ep7.x86_64
git-core-2.38.1-1.ep7.x86_64.rpm
,git-core-doc-2.38.1-1.ep7.noarch.rpm
, andperl-Git-2.38.1-1.ep7.noarch.rpm
respectively. - And I also use
rpm -ivh package_name
to check some lack dependencies. However, the output forperl-Git-2.38.1-1.ep7.noarch.rpm
is
It is impossible for me to installgit = 2.38.1-1.ep7 is needed by perl-Git-2.38.1-1.ep7.noarch
perl-Git
under the lack ofgit
.
Are there any mistakes during my installation process? Is there any convenient method to intall some softwares for non-root users on the shared host?
make configure && ./configure --prefix=$HOME/mygit && make -j && make install
. You do not need RPMs. Later on,export PREFIX=$HOME/mygit/bin:$PREFIX
– Artem S. Tashkinov Jan 17 '23 at 10:54git clone https://github.com/kaldi-asr/kaldi.git
, the output isgit: 'remote-https' is not a git command. See 'git --help'.
. https://stackoverflow.com/questions/51366101/git-remote-https-is-not-a-git-command might be a solution for my error. But when I runcurl --version
, outputcurl 7.84.0 (x86_64-conda-linux-gnu) libcurl/7.84.0 OpenSSL/1.1.1q zlib/1.2.12 libssh2/1.10.0 nghttp2/1.46.0
indicates libcurl has been installed. – echo Jan 17 '23 at 11:24PATH="$PATH:/path/to/local/git"
. – etosan Jan 26 '23 at 13:24