# So I"m sure someone has come across this before...but how do you fix the gem\_original\_require probl

**URL:** <https://www.ruby-forum.com/t/so-i-m-sure-someone-has-come-across-this-before-but-how-do-you-fix-the-gem-original-require-probl/139832>\
**Category:** Rails\
**Created:** [June 7, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/so-i-m-sure-someone-has-come-across-this-before-but-how-do-you-fix-the-gem-original-require-probl/139832 "2008-06-07T21:15:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [June 7, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/so-i-m-sure-someone-has-come-across-this-before-but-how-do-you-fix-the-gem-original-require-probl/139832/1 "2008-06-07T21:15:06Z")

</div>

I get this when trying to install gems:  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem\_original\_require’: no such file to load – rdoc/rdoc (LoadError)

The trouble is, I also get it when trying to install rubygems…so I  
wound up installing 0.9.4. I can’t seem to get an earlier version on  
the machine…

Any ideas?

Thanks,

Ron

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [June 8, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/so-i-m-sure-someone-has-come-across-this-before-but-how-do-you-fix-the-gem-original-require-probl/139832/2 "2008-06-08T12:35:35Z")

</div>

Hi Ron,

On 7 Jun 2008, at 20:14, Ron wrote:

> I get this when trying to install gems:  
> /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
> `gem\_original\_require’: no such file to load – rdoc/rdoc (LoadError)
> 
> The trouble is, I also get it when trying to install rubygems…so I  
> wound up installing 0.9.4. I can’t seem to get an earlier version on  
> the machine…
> 
> Any ideas?

I’m not entirely sure this is the issue, but it appears that you’re  
trying to install the gems on a system that only has ruby installed,  
but not the other ruby-tools like irb, ir, rdoc, etc.

You can either try skipping the RDoc documentation generation when  
installing the gems (‘gem help install’ and look for the --no-rdoc  
option), or else install the packages that provide the above mentioned  
tools:

e.g. in case you’re using yum on linux:

~ $ yum list installed ‘ruby\*’  
Loading “installonlyn” plugin  
Loading “downloadonly” plugin  
Installed Packages  
ruby.i386 1.8.5.35-2.fc5  
installed  
ruby-devel.i386 1.8.5.35-2.fc5  
installed  
ruby-irb.i386 1.8.5.35-2.fc5  
installed  
ruby-libs.i386 1.8.5.35-2.fc5  
installed  
ruby-rdoc.i386 1.8.5.35-2.fc5  
installed  
ruby-ri.i386 1.8.5.35-2.fc5  
installed  
~ $ \_

Hope this helps,

Peter

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [September 23, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/so-i-m-sure-someone-has-come-across-this-before-but-how-do-you-fix-the-gem-original-require-probl/139832/3 "2009-09-23T19:16:17Z")

</div>

Ron wrote:

> I get this when trying to install gems:  
> /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
> `gem\_original\_require’: no such file to load – rdoc/rdoc (LoadError)
> 
> The trouble is, I also get it when trying to install rubygems…so I  
> wound up installing 0.9.4. I can’t seem to get an earlier version on  
> the machine…
> 
> Any ideas?
> 
> Thanks,
> 
> Ron

I had the same problem, from Peter’s reply, i installed “ri” and that  
solved the problem.

sudo apt-get install ri

then followed reinstalling all that had failed.

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [June 8, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/so-i-m-sure-someone-has-come-across-this-before-but-how-do-you-fix-the-gem-original-require-probl/139832/4 "2008-06-08T12:36:11Z")

</div>

Hi Ron,

On Jun 7, 8:14 pm, Ron [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I get this when trying to install gems:  
> /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
> `gem\_original\_require’: no such file to load – rdoc/rdoc (LoadError)
> 
> The trouble is, I also get it when trying to install rubygems…so I  
> wound up installing 0.9.4. I can’t seem to get an earlier version on  
> the machine…

I’m not entirely sure this is the issue, but it appears that you’re  
trying to install the gems on a system that only has ruby installed,  
but not the other ruby-tools like irb, ir, rdoc, etc.

You can either try skipping the RDoc documentation generation when  
installing the gems (‘gem help install’ and look for the --no-rdoc  
option), or else install the packages that provide the above mentioned  
tools:

e.g. in case you’re using yum on linux:

~ $ yum list installed ‘ruby\*’  
Loading “installonlyn” plugin  
Loading “downloadonly” plugin  
Installed Packages  
ruby.i386 1.8.5.35-2.fc5  
installed  
ruby-devel.i386 1.8.5.35-2.fc5  
installed  
ruby-irb.i386 1.8.5.35-2.fc5  
installed  
ruby-libs.i386 1.8.5.35-2.fc5  
installed  
ruby-rdoc.i386 1.8.5.35-2.fc5  
installed  
ruby-ri.i386 1.8.5.35-2.fc5  
installed  
~ $ \_

Hope this helps,

Peter
