[ruby] rhc 설정은 오류 파일 ‘dl / import 가져 오기 없음’

https://developers.openshift.com/en/getting-started-windows.html#client-tools에 설명 된대로 Openshift 클라이언트 도구를 설치하고 있습니다 . ‘기기 설정’단계에서 오류가 발생했습니다.

rhc setup C : /Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb : 54 : in`require ‘: 해당 파일을로드 할 수 없음-dl / import (LoadError)

풀 스택 추적 :

C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError)
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent.rb:22:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/key_manager.rb:4:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/session.rb:4:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:11:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/ssh_helpers.rb:18:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:77:in `<class:Wizard>'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:7:in `<module:RHC>'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:6:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/base.rb:4:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/account.rb:2:in `<module:Commands>'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/account.rb:1:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:189:in `block in load'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:188:in `each'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:188:in `load'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/cli.rb:36:in `start'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/bin/rhc:20:in `<top (required)>'
        from C:/Ruby22-x64/bin/rhc:23:in `load'
        from C:/Ruby22-x64/bin/rhc:23:in `<main>'

https://groups.google.com/forum/#!topic/supmua/hPyTTamhTyc 같은 문제가 발견되었습니다
. DL을 Fiddle로 바꾸는 것이 좋습니다.

어떻게 작업 RRC를 얻을 수 있습니까?



답변

cremno 가이 의견 에서 제안한 것처럼 net-ssh를 2.9.3.beta1로 업데이트 하면 문제가 해결되었습니다.

gem install net-ssh -v 2.9.3.beta1

그 전에는 시도 gem install net-ssh했지만 도움이되지 않았습니다.


답변

OpenShift 설정 지침에 명시된 최신 버전의 Ruby (현재 2.2.1)를 사용할 때이 문제가 발생했습니다. 나는 그것을 고쳤다.

  1. 루비 1.9.3 설치
  2. “gem install rhc”재실행

그 후 아무 문제없이 “rhc setup”을 실행할 수있었습니다.


답변

Windows 10 Pro x64를 실행중인 경우 Git 버전 2.7.0 과 함께 Ruby 2.1.8 (x64) 을 설치하십시오 . 이것은 당신 이 나와 함께했던 것처럼 달리기 를 허용합니다 . 이전 버전의 최신 버전을 실행하고 설치하는 데 문제가 있었지만 루비 버전으로 다운 그레이드 할 때 Windows 에서 실행 하고 구성 할 수있었습니다 . 내가 사용하는 Ruby 버전의 이미지를 참조하십시오-rhc setupRuby 2.2.4 (x64)2.1.8 (x64)rhc setupOpenShift client toolsruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]

여기에 이미지 설명을 입력하십시오

OpenShift client toolsWindows를 시작하려면 여기읽으십시오 .


답변

최신 버전 대신 RHC 테스트 Ruby 버전을 사용하십시오 . 오늘 기준으로 1.9.3-p194


답변

일부 Windows 버전이 사용중인 루비 버전과 충돌하므로 2,2,0을 제거한 후 하위 버전의 루비를 사용 / 설치해보십시오. 나는 2.2.3을 시도한 다음 2.2.0으로 낮추었 고 나를 위해 일했다.


답변

나는이 같은 오류가 발생하여 어떤 해결책도 나를 위해 일하지 않았다. 마지막 시도에서 Ruby 1.9.3-p551 버전을 설치했고 rhc 설정이 순조롭게 진행되었습니다. Windows 10 컴퓨터를 사용합니다.


답변

Windows 10 Pro x64를 실행하고 있습니다. Git 버전 2.7.2와 함께 Ruby 2.1.8 (x64)을 설치했습니다. Rhc가 성공적으로 설치되었습니다. 그러나 “rhc snapshot save …”명령에 net-ssh에 문제가있었습니다. 그러나 Windows 10을 다시 시작한 후에 오류가 사라졌습니다.

창을 다시 부팅하십시오.