T
Tomas Korcak
Hi there,
somehow my rubygems got cripled. The problem is ruby/irb is not able to
find/locate any of my previously installed gems. The problem is that
when I install some gem I am not able to use it (require could not
locate that gem). You can see bash output below. I tried to
remove/purge/autoremove/install ruby/rubygems/irb many times and still
it is not working. Thank you for any ideas provided in advance.
Platform:
korczis@korczis-nb:~/prog/smartdata/bin$ uname -a
Linux korczis-nb 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03
UTC 2010 i686 GNU/Linux
korczis@korczis-nb:~/prog/smartdata/bin$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
korczis@korczis-nb:~/prog/smartdata/bin$ gem -v
1.3.5
Let me show you that:
1) I will install nokogiri gem
korczis@korczis-nb:~/prog/smartdata/bin$ sudo gem install nokogiri
Building native extensions. This could take a while...
Successfully installed nokogiri-1.4.4
1 gem installed
Installing ri documentation for nokogiri-1.4.4...
No definition for get_options
No definition for set_options
No definition for parse_memory
No definition for parse_file
No definition for parse_with
Installing RDoc documentation for nokogiri-1.4.4...
No definition for get_options
No definition for set_options
No definition for parse_memory
No definition for parse_file
No definition for parse_with
korczis@korczis-nb:~/prog/smartdata/bin$
2) I will try to check it with irb (You will see that irb is not able to
locate previously installed gem)
orczis@korczis-nb:~/prog/smartdata/bin$ irb
irb(main):001:0> require 'nokogiri'
LoadError: no such file to load -- nokogiri
from (irb):1:in `require'
from (irb):1
from :0
irb(main):002:0>
3) I will list installed gems
korczis@korczis-nb:~/prog/smartdata/bin$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.3, 2.3.8)
actionpack (3.0.3, 2.3.8)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.8)
activeresource (3.0.3, 2.3.8)
activesupport (3.0.3, 2.3.8)
arel (2.0.6)
builder (3.0.0, 2.1.2)
cgi_multipart_eof_fix (2.5.0)
chunky_png (0.12.0)
daemons (1.1.0)
erubis (2.6.6)
eventmachine (0.12.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
i18n (0.5.0)
jrails (0.6.0)
mail (2.2.12)
markaby (0.7.1)
mime-types (1.16)
mongrel (1.1.5)
nokogiri (1.4.4)
pg (0.10.0)
polyglot (0.3.1)
postgres (0.7.9.2008.01.28)
postgres-pr (0.6.3)
rack (1.2.1, 1.1.0)
rack-mount (0.6.13)
rack-test (0.5.6)
rake (0.8.7)
treetop (1.4.9)
tzinfo (0.3.23)
korczis@korczis-nb:~/prog/smartdata/bin$
somehow my rubygems got cripled. The problem is ruby/irb is not able to
find/locate any of my previously installed gems. The problem is that
when I install some gem I am not able to use it (require could not
locate that gem). You can see bash output below. I tried to
remove/purge/autoremove/install ruby/rubygems/irb many times and still
it is not working. Thank you for any ideas provided in advance.
Platform:
korczis@korczis-nb:~/prog/smartdata/bin$ uname -a
Linux korczis-nb 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03
UTC 2010 i686 GNU/Linux
korczis@korczis-nb:~/prog/smartdata/bin$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
korczis@korczis-nb:~/prog/smartdata/bin$ gem -v
1.3.5
Let me show you that:
1) I will install nokogiri gem
korczis@korczis-nb:~/prog/smartdata/bin$ sudo gem install nokogiri
Building native extensions. This could take a while...
Successfully installed nokogiri-1.4.4
1 gem installed
Installing ri documentation for nokogiri-1.4.4...
No definition for get_options
No definition for set_options
No definition for parse_memory
No definition for parse_file
No definition for parse_with
Installing RDoc documentation for nokogiri-1.4.4...
No definition for get_options
No definition for set_options
No definition for parse_memory
No definition for parse_file
No definition for parse_with
korczis@korczis-nb:~/prog/smartdata/bin$
2) I will try to check it with irb (You will see that irb is not able to
locate previously installed gem)
orczis@korczis-nb:~/prog/smartdata/bin$ irb
irb(main):001:0> require 'nokogiri'
LoadError: no such file to load -- nokogiri
from (irb):1:in `require'
from (irb):1
from :0
irb(main):002:0>
3) I will list installed gems
korczis@korczis-nb:~/prog/smartdata/bin$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.3, 2.3.8)
actionpack (3.0.3, 2.3.8)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.8)
activeresource (3.0.3, 2.3.8)
activesupport (3.0.3, 2.3.8)
arel (2.0.6)
builder (3.0.0, 2.1.2)
cgi_multipart_eof_fix (2.5.0)
chunky_png (0.12.0)
daemons (1.1.0)
erubis (2.6.6)
eventmachine (0.12.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
i18n (0.5.0)
jrails (0.6.0)
mail (2.2.12)
markaby (0.7.1)
mime-types (1.16)
mongrel (1.1.5)
nokogiri (1.4.4)
pg (0.10.0)
polyglot (0.3.1)
postgres (0.7.9.2008.01.28)
postgres-pr (0.6.3)
rack (1.2.1, 1.1.0)
rack-mount (0.6.13)
rack-test (0.5.6)
rake (0.8.7)
treetop (1.4.9)
tzinfo (0.3.23)
korczis@korczis-nb:~/prog/smartdata/bin$