2015-12-21 119 views
3

我一直在關注openshift的getting started,但我堅持這個錯誤。OpenShift安裝無效參數

OpenShift Client Tools (RHC) Setup Wizard 

This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git 
are properly installed. 

If you have your own OpenShift server, you can specify it now. Just hit enter to use the server for OpenShift Online: 
openshift.redhat.com. 
Enter the server hostname: |openshift.redhat.com| C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:86 
4:in `gets': Invalid argument - <STDIN> (Errno::EINVAL) 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:864:in `get_line' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:885:in `get_response' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:260:in `ask' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/highline_extensions.rb:12:in `block (2 levels) in <c 
lass:HighLineExtension>' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/wizard.rb:188:in `block in server_stage' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/highline_extensions.rb:190:in `call' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/highline_extensions.rb:190:in `section' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/highline_extensions.rb:204:in `paragraph' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/helpers.rb:339:in `block (2 levels) in <module:Helpe 
rs>' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/wizard.rb:185:in `server_stage' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/wizard.rb:67:in `block in run' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/wizard.rb:65:in `each' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/wizard.rb:65:in `run' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/commands/setup.rb:57:in `run' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/commands.rb:294:in `execute' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/commands.rb:285:in `block (3 levels) in to_commander 
' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/command.rb:180:in `call' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/command.rb:180:in `call' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/command.rb:155:in `run' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/runner.rb:421:in `run_active_command' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/command_runner.rb:72:in `run!' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/delegates.rb:12:in `run!' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/cli.rb:37:in `start' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/bin/rhc:20:in `<top (required)>' 
     from C:/Ruby193/bin/rhc:23:in `load' 
     from C:/Ruby193/bin/rhc:23:in `<main>' 

我嘗試重新安裝紅寶石(和RHC GEM)爲在不同的問題中發現舊版本(1.93)。這可能不是導致我錯誤的原因。我試着使用defauld windows命令行和PowerShell 5.0來得到相同的結果。

我期待一個服務器主機名的提示,但是這個堆棧跟蹤在進入'rhc setup'之後發生。

+1

嘗試的Ruby 2.0.0。我剛剛安裝它贏得了7.由於某種原因,64bit 2.0作品, –

+0

,謝謝! – iScrE4m

回答

5

我什麼都試過沒有什麼工作,除了this它說「改變CMD窗口屬性。只需選擇‘使用傳統的控制檯’」和它果然奏效

2

的Ruby 2.0的64位曾由於某種原因

以前的錯誤是由什麼引起的與

raw_answer = @input.gets 

我(和人我問過)具有本歸類爲「視窗魔術」。 Windows是一個很好的開發環境。

+0

非常感謝。 「Windows魔術師」完全同意。我在Win10上。嘗試了最新的Ruby 2.2.4,但沒有工作,發現了一個鏈接,所以[錯誤](http://stackoverflow.com/questions/28896733/rhc-setup-gives-error-no-such-file- dl-import),那麼接受的答案會導致我安裝ssh,但不起作用。另一個答案說試用版本記錄1.9.3 p194,然後它給了我錯誤,谷歌找到了我這一個。 – terry