Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

When trying to run rails g migration a, I get the following message

Thor is not available.
If you ran this command from a git checkout of Rails,
please make sure thor is installed, and run this command
as `ruby script/rails

Now few days this did work, and I did check my gemfile and I find thor like this

thor (0.16.0)

but it doesn't seem to work, what should I do?

share|improve this question
Have you done gem install thor? – N.N. Feb 15 '13 at 17:05

Your Answer


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

Browse other questions tagged or ask your own question.