ruby-on-railsmongrelrubygems

How do I fix this error? config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file


I get this error when launching my Mongrel server...

$ script/server --debugger
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
=> Debugger enabled
=> Call with -d to detach
=> Ctrl-C to shutdown server

When I run rake gems:refresh_specs like it suggests I get another error though:

rake aborted!
undefined method `installed_source_index' for #<Gem::SourceIndex:0x100551a58>

Any thoughts on how to fix this?


Solution

  • I am not sure why it is broken in Authlogic, but I had to generate it myself.

    Try this in your Rails project:

    $prompt> cd vendor/gems/authlogic-2.1.3

    $prompt> gem specification authlogic > .specification