Forum: Rails deployment Problems with using gem (hpricot ) on shared hosting

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3d15fb62c55b154201ac85eedc4d8f3b?d=identicon&s=25 Ju Lian (jul1an)
on 2008-12-04 16:59
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?
3d15fb62c55b154201ac85eedc4d8f3b?d=identicon&s=25 Ju Lian (jul1an)
on 2008-12-04 17:49
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 :(

this what i run is my task, with
rake rss:generate
E2d4821ea871fcb0c683a45ef61db4ef?d=identicon&s=25 Arvind Raj (ditchingjava)
on 2009-01-21 06:35
> $:.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?
This topic is locked and can not be replied to.