#30 ✓resolved

Error: "Class is not a module"

Reported by Jonathan | August 1st, 2008 @ 08:31 PM

Developer gave me a new git. When I clone and try to migrate or start the app, I get the error :

** Starting Mongrel listening at

** Starting Rails with development environment...


/Users/jonathanbrun/Sites/nimonik/vendor/gems/RedCloth-4.0.1/lib/redcloth_scan.bundle: Class is not a module (TypeError)

from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'

from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'

Running Mac OSX 10.5.4

Comments and changes to this ticket

  • tjstankus

    tjstankus August 3rd, 2008 @ 02:48 PM

    Happening to me as well, only after I've unpacked RedCloth into vendor/gems. I'm running edge rails.

  • Jason Garber

    Jason Garber August 4th, 2008 @ 03:03 PM

    There's the key. I can only replicate it by freezing the 4.0.1 gem and then uninstalling it (so it ends up frozen, not installed).

  • Jonathan

    Jonathan August 4th, 2008 @ 03:40 PM

    I solved this problem in a convuluted way.

    When I was getting the error message :


    extconf.rb update RedCloth

    can't find header files for ruby.

    I realized that the header it was looking for was not in the right

    place. So i copied the header file extconf.rb from the usr/library/

    ruby ... folder and put it in the system/library/frameworks/

    ruby.framework.... folder and voilà, it worked.

    I know I did not solve the root problem, but this is the best I could


  • Jason Garber

    Jason Garber August 4th, 2008 @ 04:41 PM

    • State changed from “new” to “resolved”

    (from [2534ee276a350bc9aeb376347a7907f02488e7c1]) Add a workaround to Rails bug #320. [#30 state:resolved]


  • Jason Garber

    Jason Garber August 18th, 2008 @ 08:54 AM

    • Title changed from “Cannot migrate or start rails app” to “Error: "Class is not a module"”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket


Referenced by