Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed the gem according to the instructions at, but when I try to run

show 8888

it doesn't work and I get

-bash: show: command not found

In their faq, they mention running

gem contents showoff-io

if that happens, but I don't know how to read what I get:


They say this:

This will list all of the files in the showoff-io gem. Look for the bin/show script. Either add that folder to your $PATH, or symlink the script into a location already on your $PATH. For example:

sudo ln -s /var/ruby/gems/.../bin/show /usr/local/bin

But obviously copy&pasting that doesn't do anything because those are just example paths.

I'm sure this is very basic, but I'm a novice at this. What do I have to do?


share|improve this question
up vote 2 down vote accepted

If you installed as your "normal" user account (didn't sudo), you most likely missed the warning message like this one:

WARNING:  Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
          /usr/bin aren't both writable.
WARNING:  You don't have /Users/jclark/.gem/ruby/1.8/bin in your PATH,
          gem executables will not run.

Try this:

export PATH=$PATH:~/.gem/ruby/1.8/bin
show 3000

If that works, then simply do this to add it to your path every time you open a terminal.

echo "export PATH=$PATH:~/.gem/ruby/1.8/bin" >> ~/.bash_profile
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.