Problems with using gem (hpricot ) on shared hosting

I get a shared web hosting from eleven2
They have a cpanel that let you install and update gems
But i don’t know how to use them

I used cpanel to update hpricot gem
I found it installed in /ruby/gems/gems/hpricot-0.6.164
This is the modifications of my source code that i meda to use it

This is what eleven2 site tell me to do:
$:.push("/home/julianne/ruby/gems")

and i required the gem
require ‘hpricot’ # Fast, flexible HTML parser

But i get an error message: no such file to load – hpricot

What can i do to fix this error
I there a way to use preferable the gems that i install using cpanel
instead of this instaled in web hosting?

Ju Lian wrote:

I get a shared web hosting from eleven2
They have a cpanel that let you install and update gems
But i don’t know how to use them

I used cpanel to update hpricot gem
I found it installed in /ruby/gems/gems/hpricot-0.6.164
This is the modifications of my source code that i meda to use it

This is what eleven2 site tell me to do:
$:.push("/home/julianne/ruby/gems")

and i required the gem
require ‘hpricot’ # Fast, flexible HTML parser

But i get an error message: no such file to load – hpricot

What can i do to fix this error
I there a way to use preferable the gems that i install using cpanel
instead of this instaled in web hosting?

I managed to run it without e problems when used

$:.push("~/ruby/gems/gems/hpricot-0.6.164/lib/")
$:.push("~/ruby/gems/gems/hpricot-0.6.164/lib/universal-java1.6")

but I don’t know why I have to specify this paths :frowning:

this what i run is my task, with
rake rss:generate

$:.push("~/ruby/gems/gems/hpricot-0.6.164/lib/")
$:.push("~/ruby/gems/gems/hpricot-0.6.164/lib/universal-java1.6")

Can you please let me know in what file you put these paths?