Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby gems repository
    text
    copied!<p>I'm trying to set a gem repository on one of our local servers. Here are the steps I'm running, that I've followed from several guides.</p> <p>1) I create the <em>BASEDIR</em> folder <em>/var/www/html/gems</em><br/> 2) sudo cp -r /usr/lib/ruby/gems/1.8/gems/someGem /var/www/html/gems<br/> 3) sudo gem generate_index -d /var/www/html/gems</p> <p>However, when I run this, I get the following output:</p> <pre><code>Loading 0 gems from /var/www/html/gems Loaded all gems Generating quick index gemspecs for 0 gems Complete Generating specs index Generating latest specs index Generating quick index Generating latest index Generating Marshal master index Generating YAML master index for 0 gems (this may take a while) Complete Compressing indicies </code></pre> <p>It's not loading the gem for some reason. I did see a guide that recommended making the <em>BASEDIR</em> as <em>/var/www/html/rubygems/</em> and then further make a <em>gems/</em> directory within the <em>BASEDIR</em> and copy the desired gems to this <em>gems/</em> directory. I also tried this, but was getting the same results.</p> <p>Our server had the unfortunate luck of having the same configuration as mentioned in this <a href="http://rambleon.org/2007/12/03/your-own-gem-server-and-ruby-185/" rel="noreferrer">post</a> (RHEL5, ruby 1.8.5, /var and /tmp on separate partitions), but we upgraded as suggested to ruby 1.8.6, but it still won't load the gem.</p> <p>Has anyone come across this? Found a solution?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload