From: Tomas Korcak Date: 2010-12-23T08:26:55+09:00 Subject: Re: Problem with gems (require not working) > You need to 'require "rubygems"' in ruby 1.8. If your ~/.irbrc doesn't > have that, you must do it explicitly when you fire up irb. Wow, amazing, it is working as the sharm.. Thank you for that point Ryan. Everybody excuse me please for that kind of silly question. That had to be questioned many times before but I was not able to google for any solution :( Last quick question. How can I setup ~/.irbrc to do not need include rubygems in every (irb instance)/(ruby file) manualy? korczis@korczis-nb:~/prog/smartdata/bin$ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'nokogiri' => true irb(main):003:0> require 'png' LoadError: no such file to load -- inline from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/lib/gems/1.8/gems/png-1.2.0/lib/png.rb:5 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require' from (irb):3 from :0 irb(main):004:0> exit korczis@korczis-nb:~/prog/smartdata/bin$ PS: There is still some problem with png library but that will be some png lib issue (i think). -- Posted via http://www.ruby-forum.com/.