port installs fail: pkg_info -- O

Kris Kennaway kris at obsecurity.org
Mon Dec 8 10:14:32 PST 2003


On Sun, Dec 07, 2003 at 12:42:20PM -0700, Thomas Hancock wrote:
> Wanted to ask a quick FreeBSD question.  All my port installs fail like this:
> 
> [root at vs146 /usr/ports/category_name/port_name]# make install
> <Finds the dependencies and runs most of the install with no problem>
> ===>  Checking if category_name/port_name already installed
> pkg_info: illegal option -- O
> usage: pkg_info [-cdDfGiIkLmopqrRsvVx] [-e package] [-l prefix]
>                 [-t template] [-W filename] [pkg-name ...]
>        pkg_info -a [flags]
> *** Error code 1
> Stop in /usr/ports/category_name/port_name.
> 
> This article seems to address the subject and suggests running FreeBSD 4.7 or later (I'm running 4.8-release though)
> http://news.gw.com/freebsd.questions/148464


> 
> It looks as though the "-- O" option after pkg_info simply doesn't exist, but was entered in the script anyway.
> The system can't interpret "-- O", so it treats it as an error and quits
> Any recommendations would be much appreciated.

4.7 indeed has pkg_info -O.  Check your path, and verify that you have actually upgraded your system completely.

kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031208/18a853b3/attachment.bin


More information about the freebsd-ports mailing list