The cloud foundry cf-uaac cli tool is written in Ruby, so installation is done with gem
, the ruby package manager.
You can run gem env
from a terminal to find the installation directory for gems which is probably /usr/bin
in your case. You wouldn't want to install your gems there as only root has permission to write. If you are on OSX there may even be more to the story.
I'm not sure what OS you are using so can't be too prescriptive, but a few suggestions for you can be found in this previous question to override this default behavior on your system:
- Override install location on the commandline
--user-install cf-uaac
- Edit your
~/.gemrc
to include something like this or change to one of the GEM PATHS
- Re-install ruby to a different location where you do have write permission
- Use ruby version manager
rvm
if you will be doing lots of ruby dev work and want to switch versions / gems
You can find out lots more about the install command in the rubygems guide if you were interested in learning more.
Hope that gets you going again.