I'm using ubuntu 9.10, apache 2 and mysql 5. I install ruby 1.8.7 on the server. I ran the command

gem install rails -v 1.2.3

But then I get the error

ERROR:  While executing gem ... (NoMethodError)
    undefined method `include?' for nil:NilClass

What did I do wrong?

link|improve this question

feedback

2 Answers

I believe you need:

gem install rails -v=1.2.3

or gem will think that 1.2.3 is a new gem to install, add the = sign.

link|improve this answer
feedback
up vote 0 down vote accepted

I formatted the disk and installed everything all over again. I was trying to replicate the settings of a very old ruby on rails server. So this time I made sure I had the correct version of all the old dependent gems. This seemed to have solved "some" of the problems.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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