我有一個能夠在本地正常工作的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
好吧,這是一個進步!我會檢查下一個問題:) –