Bug#419393: How to use a genuine gem pkg installed with debian rubygems?

2007-05-14 Thread iain broadfoot

You need to
require 'rubygems'
before trying to require anything installed as a gem.

This is true whether you're using debian's rubygems packages or not.

cheers,
iain


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#419393: How to use a genuine gem pkg installed with debian rubygems?

2007-04-17 Thread Joel Soete
Hello Daigo,

In ruby's manpages (release 1.8.6-1), I finaly found the right way to work
with debian way gem pkg are installed:

for the rubicus gem:
RUBYLIB=/var/lib/gems/1.8/gems/rubicus-0.1.0/lib
export RUBYLIB

It seems to me hard to manage with severall lib to install.
(isn't there any means to use debian alternatives mechanism to put links in
/usr/local/libe/site_ruby/1.8 where ruby1.8 debian install look also for
additional lib?)

kr,
Joel
---
Scarlet ADSL Unlimited – Seulement 24,95 euro par mois.
Vitesse maximale jusqu'a 6 Mbps, 30 GB de volume de telechargement. Commandez 
maintenant…




Bug#419393: How to use a genuine gem pkg installed with debian rubygems?

2007-04-15 Thread rubygems
Package: rubygems
Version: 0.9.0-6
Severity: normal

Hello all,

This is much more a request of support then an actual br but I don't find yet
another way to do such request, sorry.

Trying to plot some perf info grabed from nmon tool, I already wrote 80% of some
kind of scatter script in ruby. I choose ploticus to produce plot files (ps
format). I discover rubicus as wrapper which I hope would help me in the
interface. Unfortunately for this rubicus project there is only a gem pakage
(afaik the tarball doesn't own any other way to install it without gem: no 
setup.rb,
no INSTALL info). I so install the debian rubygems dpkg on my unstable debian
install, then the rubicus.gem pkg. All seems successfull.

The pb is that stuff are puts in this path:
/var/lib/gems/1.8/gems/rubicus-0.1.0/lib/

where apparently ruby doesn't look for libs: a simple script
require 'rubicus'
= r1.rb:1:in `require': no such file to load -- rubicus (LoadError)
from r1.rb:1

Otoh if in /usr/lib/ruby/1.8, I create following links:
 rubicus.rb - /var/lib/gems/1.8/gems/rubicus-0.1.0/lib/rubicus.rb
 rubicus - /var/lib/gems/1.8/gems/rubicus-0.1.0/lib/rubicus

the stuff works fine.

Any idea on what I missed?

Tia for help,
Joel

 

-- System Information:
Debian Release: lenny/sid
Architecture: i386 (i686)

Kernel: Linux 2.6.20.7-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages rubygems depends on:
ii  libgems-ruby1.8   0.9.0-6libraries to use RubyGems, a packa
ii  ruby  1.8.2-1An interpreter of object-oriented 

rubygems recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]