Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- hpricot #16

Closed
Qarar opened this issue Dec 3, 2012 · 5 comments
Assignees

Comments

@Qarar
Copy link

Qarar commented Dec 3, 2012

Hi,
I got this error i have no idea about ruby.Please help
Os = Centos 5.6

root@Ali-laptop:~# ./check_webpage.rb -vv -u http://www.google.com
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- hpricot (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from ./check_webpage.rb:41:in `

'

@ghost ghost assigned toubib Dec 3, 2012
@toubib
Copy link
Owner

toubib commented Dec 3, 2012

Hi,

You have to install some ruby libraries (named gem).

I have no experiences with centos but you can try these commands:

1/ Install ruby dev:
yum install ruby-devel

2/ Install gems:
gem install hpricot
gem install optiflag

@Qarar
Copy link
Author

Qarar commented Dec 4, 2012

Now i am getting this error

[root@adsr2 plugins]# ./check_webpage.rb -vv -u http://www.google.com

Aborted

@Qarar
Copy link
Author

Qarar commented Dec 4, 2012

i wasted my whole day on this error please help. I am new to ruby......

@Qarar
Copy link
Author

Qarar commented Dec 4, 2012

[root@ad-main-server plugins]# ./check_webpage.rb -vv -u http://www.google.com

OK - 21ko, 2 files, 0.24s|time=0.24s, size=21KB;5;60;0;60

@Qarar
Copy link
Author

Qarar commented Dec 4, 2012

Hi i have fixed it thanks.

This is what i did.

gem install hpricot --version 0.6.161

@Qarar Qarar closed this as completed Dec 4, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants