"어떤 저장소에서도 유효한 gem을 찾을 수 없습니다"(rubygame 및 기타)
이 'rubygame'gem을 설치하려고 한동안 시도했지만 명령을 사용할 때마다
gem install rubygame
오류가 발생합니다.
ERROR: Could not find a valid gem 'rubygame' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
나는 또한 다른 보석을 시도했지만 비슷한 결과를 얻었습니다.
ERROR: Could not find a valid gem 'rake' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
이미 인터넷에 연결되어 있는지 확인했으며 이미 ruby와 rubygems (현재 ruby 1.8, rubygems 1.7.2 사용)를 모두 다시 설치해 보았습니다. 인터넷 검색은 전혀 도움이되지 않았습니다. 누군가 내 문제를 해결할 수 있다면 매우 감사하겠습니다. 내 소스 목록에는 http://rubygems.org 만 표시됩니다.
" https://rubygems.org/ "를 소스로 가지고 있는지 확인하십시오 .
$ gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
그렇지 않은 경우 다음을 사용하여 추가 할 수 있습니다.
$ gem sources --add https://rubygems.org/
https://rubygems.org/ added to sources
다음 은 gem source명령에 대한 문서입니다 .
다음과 같이 https 사용에 문제가있을 때마다 명령에 원하는 소스를 추가 할 수도 있습니다.
gem install GEMNAME --source http://rubygems.org
하지만 SSL 문제를 해결하는 것이 좋습니다.
당신은 프록시 뒤에 있습니까?
브라우저에서 사용할 수있는 프록시를 확인하십시오.
다음 명령을 실행하십시오 gem install xxx --http-proxy=http://user:password@server.
rubygems.org에 대한 인터넷 연결이 없습니다.
이는 사이트가 다운되거나 차단 된 경우에 가끔 발생합니다.
이 명령은 연결이 rubygems.org에 도달 할 수 있는지 여부를 보여줍니다.
traceroute rubygems.org
아마도 당신은 시도해야
gem list -r
그때
gem install -r rubygame
또한 rvmMacosX (제 경우에는 Lion)에서 설치해야합니다 ruby-1.9.3-p194(Xcode 4.x 컴파일러 고려 사항).
rvm rubygems current
그리고 제 경우에는
rvm use ruby-1.9.3-p194@global
(포함하는 bundler, rake, rubygems-bundler및 rvm)
그리고 아닙니다
rvm use ruby-1.9.3-p194
(비어 있음)
gem install의 프록시 명령 옵션을 사용하여이 문제를 해결했습니다. 형식은 다음과 같습니다.
$ gem install --http-proxy http://201.187.107.19:8080 rubygame
IP 주소와 포트 번호는 프록시를 나타냅니다. 프록시 목록을 검색하고 거기에있는 프록시 중 하나를 사용해야합니다.
프록시가있는 사이트 : http://www.cybersyndrome.net/pla5.html
또한 성공하려면 7 ~ 8 개의 다른 프록시를 시도해야합니다. 포기 하지마.
버전을 게시 할 수 있습니까?
ruby -v
#=> ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
gem -v
#=> 1.8.19
gem 명령이 최신이 아닌 경우 다음과 같이 업데이트 할 수 있습니다.
gem update --system
Ruby를 사용하여 rubygems.org에 연결할 수 있는지 확인하려면 :
require 'net/http'
require 'uri'
puts Net::HTTP.get URI.parse('https://rubygems.org')
그렇다면 좋습니다.
그렇지 않다면 루비가 인터넷 연결을 열지 못하도록 차단됩니다. 이것을 시도하고 그들 중 하나가 작동하는지 확인하십시오.
curl https://rubygems.org
curl https://rubygems.org --local-port 1080
curl https://rubygems.org --local-port 8080
env | grep -i proxy
회사 컴퓨터를 사용하거나 회사 방화벽 내에서 또는 자체 방화벽을 실행하는 경우 프록시를 사용해야 할 수 있습니다.
For info on Ruby and proxies see http://www.linux-support.com/cms/http-proxies-and-ruby/
I know this is a little late, but I was also having this issue a while ago. This is what worked for me:
REALLY_GEM_UPDATE_SYSTEM=1
sudo gem update --system
sudo gem install rails
Hope this helps anyone else having this issue :)
Use :
gem sources --add http://rubygems.org/
Do you want to add this insecure source? [yn] [YES]
then use
gem install sass
and done
I have tried most of the solutions suggested here but I had no luck. I found a solution that worked for me, which was manually updating the gemfile to 2.6.7. The guide on how to do is in guides.rubygems.org: installing-using-update-packages
Download rubygems-update-2.6.7.gem to your C:\
Now, using your Command Prompt:
C:\>gem install --local C:\rubygems-update-2.6.7.gem
C:\>update_rubygems --no-ri --no-rdoc
After this, gem --version should report the new update version (2.6.7).
You can now safely uninstall rubygems-update gem:
C:\>gem uninstall rubygems-update -x
Removing update_rubygems
Successfully uninstalled rubygems-update-2.6.7
The reason why this did not work before was because server used certificates SHA-1, now this was updated to SHA-2.
For what it is worth I came to this page because I had the same problem. I never got anywhere except some IMAP stuff that I don't understand. Then I remembered I had uninstalled privoxy on my ubuntu (because of some weird runtime error that mentioned 127.0.0.1:8118 when I used Daniel Kehoe's Rails template, https://github.com/RailsApps/rails3-application-templates [never discovered what it was]) and I hadn't changed my terminal to the state of no system wide proxy, under network proxy.
I know this may not be on-point but if I wound up here maybe other privoxy users can benefit too.
check your DNS settings ...I was facing similar problem ... when I checked my /etc/resolve.config file ,the name server was missing ... after adding it the problem gets resolved
This worked for me to bypass the proxy definitions:
1) become root
2) gem install -u gem_name gem_name
Hope you can work it out
Make sure you type the command from the "App" Directory
I tried to install a gem which is for JRuby only, running into the same error. Using jruby's command worked then:
jruby -S gem install some_jruby_gem
If you are running behind the any firewall(if firewall blocking gem installation). just try following command it works.
gem install --http-proxy http://username:pwd@server:port gem
It is a permission issue.
try with sudo
'IT TIP' 카테고리의 다른 글
| iOS UICollectionView 프로토 타입 셀 크기 속성이 무시 됨 (0) | 2020.11.25 |
|---|---|
| 장치 너비와 높이를 얻는 방법은 무엇입니까? (0) | 2020.11.25 |
| 미디어 유형 = application / json에 대한 MessageBodyWriter를 찾을 수 없습니다. (0) | 2020.11.25 |
| Django가 관리자에게 이메일을 보내지 않음 (0) | 2020.11.25 |
| 버튼의 클릭 이벤트 핸들러에서 대화 상자가 닫히지 않도록 방지 (0) | 2020.11.25 |