[英]Installing git on shared hosting - ./configure: no such file or directory
[英]How to install and configure git on a shared hosting?
因此,我一直在網上搜索如何在共享主機上安裝git,但我仍然不知道。
從以下位置獲取最新版本的git https://github.com/git/git/releases
登錄到主機並在主文件夾中,運行以下命令。
curl -O http://github.com/git/git/archive/v1.8.3.3.tar.gz(put the latest vesion of git) tar zxvf git-1.8.3.3.tar.gz cd git-1.8.3.3 ./configure --prefix=/home/$USER --with-curl --with-expat make -i make -i install echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc source $HOME/.bashrc
然后輸入git version它會給git版本1.8.3
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.