Using Ruby gems

Well… I’m occasional Ruby developer – I have a little spare time and only then I can do some development. So I often get stuck in with trivial issues. Trivial for everyone who uses Ruby on daily basis. And from my observations for my memory is good thing to write down my “findings”. I do it sometimes using this blog, so don’t be scared away when I write here about trivial things.

What this time? I’m writing Yet Another Log File Analyzer (TM) :-)) and of course I find file-tail gem very useful. But first I have to install it ;-) This was without any hassle. But, then:

./logwatcher.rb:21:in `require': No such file to load -- file/tail (LoadError) from ./logwatcher.rb:21

Well… What was going on? I forgot to include require 'rubygems' so Ruby interpreter could not find file-tail. Simple things are least obvious :(((

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.