【问题标题】:anybody can help me to come out this probleam [closed]任何人都可以帮我解决这个问题[关闭]
【发布时间】:2012-06-27 10:30:51
【问题描述】:

Git 错误:/home/ubuntu/Desktop/1_files/imageeditorservicespro 目录中的命令 git clone 'https://github.com/JangoSteve/remotipart.git' "/home/ubuntu/.bundler/cache/git/remotipart-46f8bf276d5ffef4f196efc85f86445ee22983a2" --bare --no-hardlinks 失败。

【问题讨论】:

标签: ruby-on-rails git bundler


【解决方案1】:

您的 git 显然没有 http/https 克隆所需的 curl 绑定。 您可以将 gemfile 更改为显式使用 git://github.com/JangoSteve/remotipart.git 而不仅仅是 github.com/JangoSteve/remotipart.git(git:// 部分很重要)

或者,如果您想要一个可以处理 http 的 git 版本,请尝试通过 aptitude 或从源代码使用 curl 重新安装 git:

通过 apt:

sudo apt-get remove git-core
apt-get install curl libcurl4-openssl-dev # or whatever your curl dev package is
sudo apt-get install git-core   

来源:

sudo apt-get remove git-core
sudo apt-get build-dep git-core

# download and extract the git sources from https://github.com/git/git/tags
# cd into the source directory
./configure --with-curl --with-expat
make
sudo make install

【讨论】:

  • 感谢 paukul。在这个 git clone git://github.com/JangoSteve/remotipart.git 之后,我的代码就可以工作了
  • 不客气。如果我的回答对你有帮助,请采纳为正确答案
  • 但我无法理解,当我写 gem 'remotipart' 时,:git => "github.com/JangoSteve/remotipart.git" 它不起作用但是当我写 gem 'remotipart' 时, :git => "github.com/JangoSteve/remotipart.git",branch=>'master' 然后它开始工作你能解释一下为什么吗?
【解决方案2】:

如果你想克隆它,试试这个

 git clone git://github.com/JangoSteve/remotipart.git

【讨论】:

  • 我确实使用它来创建克隆,但是当我捆绑安装相同的错误时出现致命错误:无法找到“https”的远程助手
  • gem 'haml' gem 'rmagick' gem 'paperclip' gem 'aws-sdk', '~> 1.3.4' gem 'remotipart', :git => "github.com/JangoSteve/remotipart.git" gem ' activeadmin' gem "meta_search", '>= 1.1.0.pre' # activeadmin 组需要 :development do gem 'sqlite3' gem 'guard' gem 'guard-rspec' gem 'spork' gem 'launchy' end
  • 感谢 skywOOker 在此之后我对 gem 文件进行了一些更改,现在它正在工作
  • 但我不明白当我写 gem 'remotipart' 时,:git => "github.com/JangoSteve/remotipart.git" 它不起作用但是当我写 gem 'remotipart' 时, :git => "github.com/JangoSteve/remotipart.git",branch=>'master' 然后它开始工作你能解释一下为什么吗?
猜你喜欢
  • 1970-01-01
  • 2015-05-05
  • 1970-01-01
  • 2022-11-02
  • 1970-01-01
  • 2012-11-30
  • 1970-01-01
  • 2023-03-19
相关资源
最近更新 更多