pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: pkgsrc
--On 2008/03/18 9:16 -0400 "Johnny C. Lam" <jlam%pkgsrc.org@localhost> wrote:
Ruby scripts that use extensions that are installed as gems need to do
one of the following:
(1) Try loading "rubygems" at the start of the script, but ignoring a
load failure:
require 'rubygems' rescue LoadError
require 'sqlite3'
...
Hmm...
% rabbit xxx.rbt
/usr/pkg/bin/rabbit:7:in `require': no such file to load -- rubygems
(LoadError)
from /usr/pkg/bin/rabbit:7
Why it works on your environment and not on mine?
If you switch ruby packages to gems world,
why not change ruby18-base to include rubygems and autoload it
as ruby19 doing?
It make maintenance of ruby packages more easy.
--
"Of course I love NetBSD":-)
OBATA Akio / obache%NetBSD.org@localhost
Home |
Main Index |
Thread Index |
Old Index