Super User is a question and answer site for computer enthusiasts and power users. 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'm trying to follow along with this tutorial and the puts command returns command not found and I am not sure why. I've followed this article and looked in the various folders and do not see a puts command.

I've checked echo $PATH and everything seems to be in order and returns:


My .bash_profile looks like this:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

What am I missing here?

share|improve this question

This is not a command available to your shell. It's a command that's native to Ruby so you can only use it from within a Ruby script.

share|improve this answer

"puts" is not a command in the terminal. It is like println() in java. You should have the line in your ruby file. e.g.

puts "hello world"
share|improve this answer
This duplicates another answer and adds no new content. Please don't post an answer unless you actually have something new to contribute. – DavidPostill Apr 17 at 12:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .