我有一个能够在本地正常工作的gem文件。在我的宝石文件我的宝石之一的安装要使用像这样一个GitHub的位置...无法从开发包上的github安装gem
gem 'rails3-jquery-autocomplete', :git => 'https://github.com/willfults/rails3-jquery-autocomplete.git'
问题是,当我运行ssh到我开发框和运行包或捆绑安装,我得到我的服务器上的以下错误...
Fetching gem metadata from https://rubygems.org/..
Fetching https://github.com/willfults/rails3-jquery-autocomplete.git
fatal: failed to open '/srv/www/socialu.com/https://github.com/willfults/rails3-jquery-autocomplete.git/objects': No such file or directory
Git error: command `git clone 'https://github.com/willfults/rails3-jquery-autocomplete.git' "/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/cache/bundler/git/rails3-jquery-autocomplete-186d8dd59401e0d4dd8c2860261d9ba55e0793f2" --bare --no-hardlinks` in directory /srv/www/socialu.com has failed.
我该如何解决这个问题?谢谢。
更新:与git的URL,我得到以下...
Fetching git://github.com/willfults/rails3-jquery-autocomplete.git remote: Counting objects: 1846, done. remote: Compressing objects: 100% (784/784), done. remote: Total 1846 (delta 1072), reused 1688 (delta 957) Receiving objects: 100% (1846/1846), 481.07 KiB | 764 KiB/s, done. Resolving deltas: 100% (1072/1072), done. ssh: Could not resolve hostname /srv/www/socialu.com/https: Name or service not known fatal: The remote end hung up unexpectedly Git error: command
git clone --no-checkout "/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/cache/bundler/git/rails3-jquery-autocomplete-6e048304dc5207eafc457581b1fa2d0073d2e1ed" "/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/bundler/gems/rails3-jquery-autocomplete-060f2bea5e46"
in directory /srv/www/socialu.com has failed. If this error persists you could try removing the cache directory '/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/cache/bundler/git/rails3-jquery-autocomplete-6e048304dc5207eafc457581b1fa2d0073d2e1ed'
谢谢尝试rubygems升级,没有解决将尝试git路径旁边,让你知道。 – HelloWorld
git url也没有解决,虽然它再次在本地工作。获取不同的错误,但会发布... – HelloWorld
好吧,这是一个进步!我会检查下一个问题:) –