From: Ryan Davis Date: 2013-02-21T07:26:00+09:00 Subject: Re: Rdoc cannot find ruby files On Feb 20, 2013, at 12:42 , Hakim Benbekhti wrote: > I am new to ruby and I am going through Peter Cooper’s book (Novice to > Professional). > I am stuck on a chapter that deals with “Generating Documentation with > RDoc”. > > I am using Ruby 1.9.3 on Mac OS with Eclipse. I am trying to create some > Ruby Documentation for my files. > To try that, I am writing a program called Person.rb in Eclipse and then > I try to create Ruby Documentation from the command line but I get an > error message: > > From the Command Line, when I type: rdoc person.rb (or any other file). > The Terminal returns the following error message: > > file 'person.rb' not found (this message comes up for any ruby files) > > I know rdoc is installed, that is already a certainty but then I have no > idea how to solve the problem and surprisingly I have not found any > helpful information on the web so far. > > Would anyone have an idea of what I should do? Case sensitivity of your filesystem? You said the file is "Person.rb" and then you run "rdoc person.rb". Try "rdoc Person.rb" instead?