git 无法更新 RVM - “致命:无法找到 'http' 的远程助手”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4569089/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't update RVM - "fatal: Unable to find remote helper for 'http'"
提问by Manuel Meurer
I'm running RVM 1.1.6 on Ubuntu 8.04 and all of a sudden I can't update to the latest version anymore.
我在 Ubuntu 8.04 上运行 RVM 1.1.6,突然之间我无法更新到最新版本了。
~ rvm get head
Original installed RVM version:
rvm 1.1.6 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
fatal: Unable to find remote helper for 'http'
Installed RVM HEAD version:
rvm 1.1.6 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
Googling for "fatal: Unable to find remote helper for 'http'" just gave me a few results, it seems like earlier versions of Git didn't support HTTP, but my Git version is fairly recent.
谷歌搜索“fatal: Unable to find remote helper for 'http'”只是给了我一些结果,似乎早期版本的 Git 不支持 HTTP,但我的 Git 版本是相当新的。
~ git --version
git version 1.7.3.2
Any ideas would be appreciated!
任何想法,将不胜感激!
回答by Frank W
I ran into the same issue and it seemed that the git version was missing curl and expat support. I could resolve it by compiling the git version myself.
我遇到了同样的问题,似乎 git 版本缺少 curl 和 expat 支持。我可以通过自己编译 git 版本来解决它。
sudo apt-get remove git-core
wget http://kernel.org/pub/software/scm/git/git-1.7.3.5.tar.gz
sudo apt-get build-dep git-core
tar xvzf git-1.7.3.5.tar.gz
cd git-1.7.3.5/
./configure --with-curl --with-expat
make
sudo make install
- Remove the installed version
- Download the latest .tar
- Install all mandatory dependencies (maybe obsolete, as you had it already running)
- Un-tar it
- Configure the make-file with curland expatextension
- Install it
- 删除已安装的版本
- 下载最新的 .tar
- 安装所有必需的依赖项(可能已经过时,因为它已经在运行)
- 解压它
- 使用curl和expat扩展名配置 make-file
- 安装它
回答by Vidal Graupera
I had to also run this on Ubuntu 8.04 or it doesnt find libcurl.
我还必须在 Ubuntu 8.04 上运行它,否则它找不到 libcurl。
apt-get install libcurl4-openssl-dev
apt-get 安装 libcurl4-openssl-dev
回答by Joe Leo
With no sudo or root access I had to do things a bit differently. Perhaps as a result, using the usual ./configure --with-options
route to configuring git did not work for me. Here's the steps I took in case it helps someone else:
由于没有 sudo 或 root 访问权限,我不得不做一些不同的事情。也许因此,使用通常的./configure --with-options
配置 git 的方法对我不起作用。这是我采取的步骤,以防它对其他人有帮助:
export CURL_INSTALL_PATH=/path/to/install/curl
export EXPAT_INSTALL_PATH=/path/to/install/expat
export GIT_INSTALL_PATH=/path/to/install/git
wget http://curl.haxx.se/download/curl-7.28.1.tar.gz
tar xzvf curl-7.28.1.tar.gz
cd curl-7.28.1
./configure --prefix=$CURL_INSTALL_PATH
wget http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz
tar xzvf expat-2.1.0.tar.gz
cd expat-2.1.0
./configure --prefix=$EXPAT_INSTALL_PATH
wget http://kernel.org/pub/software/scm/git/git-1.7.12.1.tar.gz
tar xzvf git-1.7.12.1.tar.gz
cd git-1.7.12.1
make prefix=$GIT_INSTALL_PATH CURLDIR=$CURL_INSTALL_PATH
EXPATDIR=$EXPAT_INSTALL_PATH
make prefix=$GIT_INSTALL_PATH CURLDIR=$CURL_INSTALL_PATH
EXPATDIR=$EXPAT_INSTALL_PATH install