# Getting LoadError when using ruby and gem

**URL:** <https://www.ruby-forum.com/t/getting-loaderror-when-using-ruby-and-gem/158902>\
**Category:** Ruby\
**Created:** [January 29, 2009, 7:20am UTC](https://www.ruby-forum.com/t/getting-loaderror-when-using-ruby-and-gem/158902 "2009-01-29T07:20:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![balavrscse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a88e4f/32.png) [@balavrscse](https://www.ruby-forum.com/u/balavrscse)\
**Post date:** [January 29, 2009, 7:20am UTC](https://www.ruby-forum.com/t/getting-loaderror-when-using-ruby-and-gem/158902/1 "2009-01-29T07:20:34Z")

</div>

I m seeing below error when I m trying to run one of the application.

[ppok@xx23 HH]$ uname -a  
Linux xx23.iky.knobb 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008  
i686 i686 i386 GNU/Linux

[ppok@xx23 HH]]$ ruby --version;gem --version  
ruby 1.8.5 (2006-08-25) [i386-linux]  
1.3.1

/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require': no such file to load -- text/format (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from ./commandline/application.rb:171:in `man' from ./commandline/application.rb:370:in`\_\_help’  
from ./commandline/optionparser/optionparser.rb:242:in `call' from ./commandline/optionparser/optionparser.rb:242:in`parse’  
from ./commandline/optionparser/optionparser.rb:447:in `call' from ./commandline/optionparser/optionparser.rb:447:in`parse\_argv’  
from ./commandline/optionparser/optionparser.rb:447:in `each' from ./commandline/optionparser/optionparser.rb:447:in`parse\_argv’  
from ./commandline/optionparser/optionparser.rb:227:in `parse' from ./commandline/application.rb:307:in`\_\_parse\_command\_line’  
from ./commandline/application.rb:250:in `run' from ./commandline/application.rb:270:in`\_\_set\_auto\_run’  
from ./hh\_main.rb:39

I understood from the error that one of the libraries (text/format) are  
missing from the binary. Can anybody please help me in getting the  
required libraries.

Best Regards,  
Bala

---

<div class="post-metadata">

**Author:** ![balavrscse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a88e4f/32.png) [@balavrscse](https://www.ruby-forum.com/u/balavrscse)\
**Post date:** [January 29, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/getting-loaderror-when-using-ruby-and-gem/158902/2 "2009-01-29T14:58:17Z")

</div>

Hi, Bela

Try this  
gem list text-format

if nothing found, use  
gem install text-format

- Alex
