Pkgdb Problem -- /usr/local/sbin/pkgdb:35:in

Bob Perry rperry4 at earthlink.net
Sat Feb 28 15:37:38 PST 2004


>>Sorry for being so thick, but I get more than just nervous when using
>>the delete
>>command.  Do I understand you correctly in that I delete, as in rm,
>>the portupgrade
>>files in /usr/ports/sysutils/ directory and also all of the ruby
>>files in the /usr/ports/
>>lang/ directory?
>>    
>>
>
>No, you can 
>
>pkg_delete portupgrade
>pkg_delete 'ruby*'
>cd /usr/ports/sysutils/portupgrade
>make install
>
>You can see options in the commit message at 
>http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/ruby18/Makefile
>
>The pkg_delete of ruby* and portupgrade was the only thing that worked 
>for me. There is a now ruby16 and a ruby18. Portupgrade now uses 
>ruby18.
>
>Kent
>
>  
>
First, I deleted portupgrade.  Ran into what seemed like a syntax 
error,  but
eventually deleted the port.  Note the following:

==>root at sphinx:/usr/ports> pkg_delete portupgrade
pkg_delete: no such package 'portupgrade' installed
==>root at sphinx:/usr/ports> pkg_delete portupgrade-\*

Next, I deleted all ruby files, with some familiar messages following.

==>root at sphinx:/usr/ports> pkg_delete 'ruby*'
pkg_delete: unable to completely remove directory 
'/usr/local/lib/ruby/site_ruby/1.6/i386-freebsd4'
pkg_delete: unable to completely remove directory 
'/usr/local/lib/ruby/site_ruby/1.6'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
pkg_delete: file '/usr/local/bin/erb' doesn't really exist
pkg_delete: file '/usr/local/bin/h2rb' doesn't really exist
pkg_delete: file '/usr/local/bin/rdoc' doesn't really exist
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)

Reinstalled portupgrade.

==>root at sphinx:/usr/ports> cd sysutils/portupgrade/
==>root at sphinx:/usr/ports/sysutils/portupgrade> make install
<snip>
Warning: Object directory not changed from original 
/usr/ports/sysutils/portupgrade/work/pkgtools-20040208/bin
/usr/local/bin/ruby18 -wc pkg_fetch
/usr/local/bin/ruby18:No such file or directory
*** Error code 1
 
Stop in /usr/ports/sysutils/portupgrade/work/pkgtools-20040208/bin.
*** Error code 1

Had to run make clean before it would run successfully.
 
Didn't run steps 2-4 of the options in the commit segment since I 
deleted all
of the ruby files at the beginning.  Hope no problems result.

Just ran portupgrade again to complete what I had started this morning
and it ran successfully.

I was aware of similar problems others had encountered due to the change in
the default version of ruby and read the commit in Fresh Ports.  It just 
didn't
register.  I saw the phrase, "If you are a ruby developer...", and 
ignored the rest.
My bad.

Thanks so much for your time and assistance.

Bob Perry


-- 
I've learned that whatever hits the fan will not be evenly
distributed.

FreeBSD 4.9-RELEASE-p2 #0



More information about the freebsd-questions mailing list