From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 16:07:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96A1D37B401 for ; Mon, 14 Jul 2003 16:07:50 -0700 (PDT) Received: from mailhost1.bishopston.net (mailhost1.bishopston.net [68.147.148.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id D349343F93 for ; Mon, 14 Jul 2003 16:07:48 -0700 (PDT) (envelope-from jamie@bishopston.net) X-Catflap-Envelope-From: X-Catflap-Envelope-To: freebsd-questions@freebsd.org Received: from catflap.bishopston.net (jamie@localhost [IPv6:::1]) h6EN7gIZ032335; Tue, 15 Jul 2003 00:07:42 +0100 (BST) (envelope-from jamie@catflap.bishopston.net) Received: (from jamie@localhost) by catflap.bishopston.net (8.12.9/8.12.7/Submit) id h6EN7gj4032331; Tue, 15 Jul 2003 00:07:42 +0100 (BST) From: Jamie Jones Message-Id: <200307142307.h6EN7gj4032331@catflap.bishopston.net> To: Thomas von Hassel In-Reply-To: <01058219389$060849$0001$h6ELnkIZ060837@mail2news.bishopston.net> References: <01058219389$060849$0001$h6ELnkIZ060837@mail2news.bishopston.net> X-newsgroup: bish.lists.freebsd.questions X-In-Response-To: Thomas von Hassel Date: Tue, 15 Jul 2003 00:07:42 +0100 X-Spam-Status: No, hits=-3.8 required=6.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.55-catflap_1 X-Spam-Checker-Version: SpamAssassin 2.55-catflap_1 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: Ports problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 23:07:50 -0000 In bish.lists.freebsd.questions, you wrote: > I have a problem installing from the ports collection. No matter what i > try to install i get an error 1 when it is trying to check if the port > i allready installed. I tried running pkdb -F, but that does not help. > > any ideas ? Yes, I'd noticed this too - only today. It appears the Mk file has been changed to use the -O option of pkg_info That is a new option, that wasn't added to pkg_info on a release version until FreeBSD 4.7-RELEASE So someone will either have to regress it, or you'll need to upgrade to freebsd 4.8, or patch pkg_info (/usr/src/usr.sbin/pkg_install/info) Work Around ~~~~~~~~~~~ Define the environment variable FORCE_PKG_REGISTER to anything from the command line before running the install, it will work (as it will skip the part that checks if the port is already installed.) Fix ~~~ For my machine on 4.4 I needed to download and replace /usr/share/Mk/* and then /usr/src/usr.sbin/pkg_install/* from the freebsd 4.8 sources. Your /usr/share/Mk may be recent enough.. I don't know. from there, cd to /usr/src/usr.sbin/pkg_install and make make install make clean Alternatively, download my binaries, made from 4.8-release sources. De-tar the bzipped archive, and move the files from usr.sbin into /usr/sbin and the files from usr.share.man.man1 into /usr/share/man/man1 - being careful to preserve file permissions. http://www.bishopston.com/jamie/pkg_install/pkg_install_binaries_4.8.tar.bz2 (approx 90K) Cheers, Jamie