2

I am working on a MacBook Air, OS X 10.10 (Yosemite)

After successfully installing

  • Ruby 4.1.6 and
  • Git 1.9.3 (Apple Git-50)
  • OpenShift client tools rhc-1.30.2.gem

I got this message:

If this is your first time installing the RHC tools, please run 'rhc setup'

But, when I run rhc setup(according the the OpenShift documentation) I just get this back:

Olivers-MacBook-Air-4:~ oliverhowells$ rhc setup
-bash: $: command not found

I want to set up an SSH key, but as long as I get this error, I am not sure how to launch the OpenShift wizard and move forward.

Here is a link to the documentation I am looking at from OpenShift: https://developers.openshift.com/en/managing-remote-connection.html

Do you have any ideas how to proceed?

admdrew
  • 3,790
  • 4
  • 27
  • 39
  • possible duplicate of [HomeBrew -bash: $: command not found](http://stackoverflow.com/questions/18222235/homebrew-bash-command-not-found) – Holger Just Oct 06 '14 at 18:58
  • 1
    Take a look at [these question/answers](http://stackoverflow.com/questions/10111020/cant-use-rhc-after-installation-for-openshift). – admdrew Oct 06 '14 at 19:00
  • @HolgerJust I'd argue that duplicate flag isn't the most relevant (given OP is also trying the command correctly). – admdrew Oct 06 '14 at 19:01
  • After the most recent edit (#5), the error message doesn't match the command you entered. Please post exact and full error messages! – Holger Just Oct 06 '14 at 19:02

1 Answers1

2

I had this issue after installing using rbenv. I fixed it by running rbenv rehash from the command line.

James Reimer
  • 196
  • 1
  • 6