just to introduce my problem: because I have a bad internet connection I
create a local repository on one of my PCs here in the office, and
from this PC (instead of rubygems).
I looked to a lot of blogs, manuals, etc., but I can not get it working.
This is what I did:
On my PC (which should be my local gem repository) - Linux system
1. mkdir /var/www/localhost/htdocs/gems
2. cp /usr/local/lib64/ruby/gems/1.9.1/cache/*.gem
3. gem generate_index -d /var/www/localhost/htdocs
This creates the following in /var/www/localhost/htdocs:
4. Starting the server with
gem server --dir /var/www/localhost/htdocs/
This ends up with the following error message:
ERROR: While executing gem ... (ArgumentError)
/var/www/localhost/htdocs does not appear to be a gem repository
When I start gem server (which is linked to
default) the gem server starts perfect.
Comparing these directories the /usr/local/lib64/ruby/gems/1.9.1
contains bin, cache, doc, gems, specifications
Not so for my "new" directory: /var/www/localhost/htdocs. Also the
are hold different (in /var/www/localhost/htdocs under quick/Marshal.4.8
they are inflated with gemspec.rz)
So the question is: how can I create a repository like under
/usr/local/lib64/ruby/gems/1.9.1 . Is there a special command?
Thanks for any advice,
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.