Can't update RVM - “fatal: Unable to find remote helper for 'http'”

我是研究僧i 提交于 2019-11-30 19:00:01

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.

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
  1. Remove the installed version
  2. Download the latest .tar
  3. Install all mandatory dependencies (maybe obsolete, as you had it already running)
  4. Un-tar it
  5. Configure the make-file with curl and expat extension
  6. Install it

I had to also run this on Ubuntu 8.04 or it doesnt find libcurl.

apt-get install libcurl4-openssl-dev

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:

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!