Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2002 15:19:40 -0800
From:      "Craig Burgess" <craig@CheetahUSA.net>
To:        "Ray Kohler" <rkohler1@cox.rr.com>, <FreeBSD-questions@FreeBSD.ORG>
Subject:   RE: ruby/portupgrade errors + other stuff
Message-ID:  <JMEJIDBCLMMNOALABHFFCEJHCHAA.craig@CheetahUSA.net>
In-Reply-To: <0c2b51335211212FE5@mail5.mgfairfax.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hmmmmm.
=======================
felix# pkg_info ruby
pkg_info: can't find package `ruby' installed or in a file!
=======================
I tried that when your entry failed.

Webmin shows:
=======================
   ruby-1.6.6 An object-oriented interpreted scripting language
   ruby-optparse-0.8.6 Yet another command line option parser for Ruby
   ruby-reference-1.0_1 Ruby Class and Module Reference, in HTML format
   ruby-usersguide-20010216 Ruby users guide, in HTML format
=======================
from installing portupgrade:
=======================
===>    Verifying install for
/usr/local/lib/ruby/site_ruby/1.6/optparse.rb in /
usr/ports/devel/ruby-optparse
>> optparse-0.8.6.tar.gz doesn't seem to exist in
/usr/ports/distfiles/ruby.
>> Attempting to fetch from http://member.nifty.ne.jp/nokada/archive/.
^MReceiving optparse-0.8.6.tar.gz (76353 bytes): 0%^MReceiving
optparse-0.8.6.ta
r.gz (76353 bytes): 21%^MReceiving optparse-0.8.6.tar.gz (76353 bytes):
100%
76353 bytes transferred in 1.9 seconds (38.38 kBps)
===>  Extracting for ruby-optparse-0.8.6
 . . .
===>   portupgrade-20020117 depends on file:
/usr/local/lib/ruby/site_ruby/1.6/a
lpha-freebsd4/fnmatch.so - not found
===>    Verifying install for
/usr/local/lib/ruby/site_ruby/1.6/alpha-freebsd4/fnmatch.so in
/usr/ports/devel/ruby-fnmatch
===>   Returning to build of portupgrade-20020117
 . . .
===>   portupgrade-20020117 depends on file:
/usr/local/lib/ruby/site_ruby/1.6/uri.rb - not found
===>    Verifying install for /usr/local/lib/ruby/site_ruby/1.6/uri.rb
in /usr/ports/net/ruby-uri
===>   Returning to build of portupgrade-20020117
=======================

uri.rb is in /usr/local/lib/ruby/site_ruby/1.6/optparse
(which could be one of the problems??) so I copied it up on level, just
in case...

From the /usr/ports --- work directory ...
=======================
felix# cd ruby-fnmatch-1.1b/
felix# ls
MANIFEST        extconf.rb      fnmatch.o
Makefile        fnmatch.c       fnmatch.so
felix# cp fnm* /usr/local/lib/ruby/site_ruby/1.6/alpha-freebsd4/
=======================
again, copied "just in case"

Where (what?) is pkgtools supposed to be?

=======================
felix# find / -iname "pkgtools"
/usr/local/share/doc/pkgtools
/usr/local/share/examples/pkgtools
=======================

pwd
/usr/local/share/examples/pkgtools/tcsh
felix# cat complete.sample
#!/bin/csh
#
# $Idaemons: /home/cvs/pkgtools/misc/tcsh/complete.sample,v 1.5
2001/12/10 02:11
:30 knu Exp $

if ($?PORTSDIR == 0) then
    setenv PORTSDIR /usr/ports
endif

if ($?PKG_DBDIR == 0) then
    setenv PKG_DBDIR /var/db/pkg
endif

complete pkg_deinstall "p@*@D:$PKG_DBDIR@@"
complete pkg_fetch 'p@*@`ls $PKG_DBDIR | sed "s,\(.*\)-.*,\1," `@@'
complete pkg_tarup "p@*@D:$PKG_DBDIR@@"
complete ports_glob "p@*@D:$PORTSDIR@"
complete portinstall "p@*@D:$PORTSDIR@"
complete portupgrade "n@-o@D:$PORTSDIR@" "p@*@D:$PKG_DBDIR@@"
complete portversion "p@*@D:$PKG_DBDIR@@"
=======================

Looks to me like the ducks now ought to be lined up but it still fails.
I'm perplexed.

craig

> -----Original Message-----
> From: Ray Kohler [mailto:rkohler1@cox.rr.com]
> Sent: Friday, January 18, 2002 1:38 PM
> To: Craig Burgess; FreeBSD-questions@FreeBSD.ORG
> Subject: Re: ruby/portupgrade errors + other stuff
>
>
> On Friday 18 January 2002 03:41 pm, Craig Burgess wrote:
> > Good suggestion! After removing all of the ruby stuff (and
> > portupgrade), I let the portupgrade installation get what it
> > wanted for ruby based on the portupgrade-20020117 port.
> >
> > Unfortunately it didn't produce the deisred result (portupgrade
> > won't run).
> >
> > ==============================
> > Script started on Fri Jan 18 08:15:02 2002
> > felix# pkgdb -F
> > /usr/local/lib/ruby/site_ruby/1.6/pkgtools.rb:9: fnmatch module
> > not found (RuntimeError)
> >         from /usr/local/sbin/pkgdb:35:in `require'
> >         from /usr/local/sbin/pkgdb:35
> > felix# exit
> > exit
> > Script done on Fri Jan 18 08:15:21 2002
> > ==============================
> >
> > I looked at /usr/local/lib/ruby/site_ruby/1.6/pkgtools.rb and
> > there was nothing that leapt out as a problem but I don't really
> > know what to look for.
>
> Make sure the ruby-fnmatch port is installed (as well as
> ruby-optparse, and ruby-uri). These ought to be installed with
> portupgrade.
>
> ~ 4:36pm > pkg_info | g ruby
> ruby-1.6.6          An object-oriented interpreted scripting
> language
> ruby-fnmatch-1.1b_1 A Ruby module which provides File::fnmatch and
> File::FNM_*
> ruby-optparse-0.8.6 Yet another command line option parser for Ruby
> ruby-uri-0.9,1      Ruby interface to parse URIs according to RFC
> 2396


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?JMEJIDBCLMMNOALABHFFCEJHCHAA.craig>