I am making a ruby gem with an executable and a class library. The executable has require "fpa/chklinks" which is the class library in lib/fpa directory.
I get the following error when I run my executable named chklinks.rb:
$ bin/chklinks.rb -h /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- fpa/chklinks (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/chklinks.rb:7:in `<main>' How can I make it find my library during development? I have tried require_relative "../lib/fpa/chklinks"