[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

FreeBSD specific issue with gems and ports

Witold Rugowski

8/7/2006 12:12:00 PM

Hi!
This is FreeBSD specific issue. Maybe someone who uses FreeBSD could
help me with this: I wonder if there is any 'recommended' way of
installing Ruby's gems not wrapped in separated port?

I have on 5.5 box installed:
[/var/db/pkg] $ ls -d ruby*
ruby-1.8.2_5,1/ ruby18-bdb4-0.5.3/ ruby18-gems-0.8.11/

And I did install file-tail via gems (gem install file-tail). It got
installed, but there is no sym-links. As an result simple require
'file/tail' does not work, since default include path for Ruby is:

$ ruby -e 'puts $:'
/usr/local/lib/ruby/site_ruby/1.8
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd5
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/1.8
/usr/local/lib/ruby/1.8/i386-freebsd5

And gem have installed file-tail here:
/usr/local/lib/ruby/gems/1.8/gems/file-tail-0.1.3/lib/file/tail.rb


So, should I:
- manually link directories to /usr/local/lib/ (ugly)
- manually add -I statements for each script (very ugly and hard to
maintain when new gem versions will appear)
- search harder and find some magic and clean ;-) method to do this?

--
Posted via http://www.ruby-....

1 Answer

F. Senault

8/8/2006 1:07:00 AM

0

Le 7 août 2006 à 14:12, Witold Rugowski a écrit :

> So, should I:
> - manually link directories to /usr/local/lib/ (ugly)
> - manually add -I statements for each script (very ugly and hard to
> maintain when new gem versions will appear)
> - search harder and find some magic and clean ;-) method to do this?

It should work if you put a require 'rubygems' before the require for
the gem.

Fred
--
You and me We're in this together now None of them can stop us now
We will make it through somehow (Nine Inch Nails,
You and me If the world should break in two We're in
Until the very end of me Until the very end of you This Together)