Rhc setup undefined method '[]' for nil: NilClass

I am trying to configure the OpenShift Client tool rhcon my Mac, but I keep getting the following error:

An unexpected error occured: undefined method `[]' for nil:NilClass

I tried updating Ruby to the latest version from MacRuby, and I have Git and Xcode.

I manually set the gem net-ssh, as mentioned in another post, but it did not matter. I also tried to install various alternative versions highline(.11, .12, .14 and last = .21), but again it didn’t matter.

Any ideas what else I can try?

+4
source share
2 answers

rhc, gem update rhc, rhc-1.25.3

+1

, :

$ sudo gem uninstall rhc
$ sudo gem uninstall httpclient
$ sudo gem install httpclient -v 2.3.4
$ sudo gem install rhc
$ rhc setup
+3

Source: https://habr.com/ru/post/1543796/


All Articles