无法更新 RVM - “致命:无法找到“http”的远程帮助程序

发布于 2024-10-10 00:26:41 字数 786 浏览 0 评论 0原文

我在 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/]

谷歌搜索“致命:无法找到‘http’的远程帮助程序”只给了我一些结果,似乎早期版本的 Git 不支持 HTTP,但我的 Git 版本相当新。

~ git --version
git version 1.7.3.2

任何想法将不胜感激!

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.

~ 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.

~ git --version
git version 1.7.3.2

Any ideas would be appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

扮仙女 2024-10-17 00:26:41

我遇到了同样的问题,似乎 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
  1. 删除已安装的版本
  2. 下载最新的 .tar
  3. 安装所有必需的依赖项(可能已过时,因为您已经在运行它)
  4. 解压缩它
  5. 使用 curlexpat 配置 make 文件> 扩展
  6. 安装它

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
孤云独去闲 2024-10-17 00:26:41

我还必须在 Ubuntu 8.04 上运行它,否则它找不到 libcurl。

apt-get 安装 libcurl4-openssl-dev

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

apt-get install libcurl4-openssl-dev

夜司空 2024-10-17 00:26:41

由于没有 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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文