[Rubygems-developers] index_gem_repository problem

Chad Woolley thewoolleyman at gmail.com
Mon Mar 12 03:41:18 EDT 2007

You can run a server with gem_server as well, but you probably don't
want to do that if it's a permanent server.

As for your problem with index_gem_repository - did you pull down the
whole "1.8" dir?  For example, you should have copied
"/usr/local/lib/ruby/gems/1.8/" to some dir on your machine.  This is
the "repository".  Under this directory, there will be a "gems"
directory (which --help mentions), and also specifications, cache, and
doc (and a source_cache file).  You need to pass this "1.8" dir (or
whatever you renamed it to) as the -d parameter.

-- Chad

On 3/11/07, Steve Conover <sconover at gmail.com> wrote:
> Anyone run into this?  I brought down all gems to my server box, and
> then, from the directory above it, ran
> /usr/bin/index_gem_repository.rb -d .
> After a few minutes I get this stack trace:
> /usr/local/lib/site_ruby/1.8/rubygems/format.rb:41:in
> `from_file_by_path': undefined method `include?' for nil:NilClass
> (NoMethodError)
>         from /usr/bin/index_gem_repository.rb:200:in `build_index'
>         from /usr/bin/index_gem_repository.rb:199:in `build_index'
>         from /usr/bin/index_gem_repository.rb:83:in `build'
>         from /usr/bin/index_gem_repository.rb:80:in `build'
>         from /usr/bin/index_gem_repository.rb:198:in `build_index'
>         from /usr/bin/index_gem_repository.rb:83:in `build'
>         from /usr/bin/index_gem_repository.rb:80:in `build'
>         from /usr/bin/index_gem_repository.rb:197:in `build_index'
>         from /usr/bin/index_gem_repository.rb:297:in `main_index'
>         from /usr/bin/index_gem_repository.rb:301
> Has anyone seen this before?
> My goal is to run my own gem server locally.  Is there anything more I
> need to do besides bring down all the gems, install rubygems (and
> update it), and run the index script?
> -Steve
> _______________________________________________
> Rubygems-developers mailing list
> Rubygems-developers at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubygems-developers

More information about the Rubygems-developers mailing list