Home > Uncategorized > quick note on ruby “require”

quick note on ruby “require”

I installed hpricot gem in a non standard directory on my shared server on hostmonster. When I tried, require ‘hpricot’ in ruby it failed to load even when I set RUBY_PATH variable in my bashrc file. The solution to that problem is to do require ‘rubygems’ and then require ‘hpricot’.  Supposedly, the path is altered after executing rubygems to pick up from the non standard path as well. Thanks to guys in the ruby-lang channel on irc.

me learns something new today!

Categories: Uncategorized Tags:
  1. Suntu
    August 26th, 2008 at 14:14 | #1

    Where did you learn this Alien language bhai ???

  2. Anonymous Gal
    August 30th, 2008 at 22:47 | #2

    Kya bandha hai yeh:)

  1. January 12th, 2009 at 19:05 | #1

Anti-Spam Protection by WP-SpamFree