From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 14:39:53 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 08818365 for ; Wed, 24 Sep 2014 14:39:53 +0000 (UTC) Received: from smtp-out-03.shaw.ca (smtp-out-03.shaw.ca [64.59.136.139]) by mx1.freebsd.org (Postfix) with ESMTP id D4A7E697 for ; Wed, 24 Sep 2014 14:39:52 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=NGyScNxeuSl9kF2CawaUazurpsiUNiZ1TJmy53crUtI= c=1 sm=1 a=ea-p9fACk6oA:10 a=prOrqjf_jrcA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=TVsGNQ0Xom62OJ2FvDBXOg==:17 a=6I5d2MoRAAAA:8 a=2-XKBuQX034KhR4bR1QA:9 a=CjuIK1q_8ugA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO dalet61) ([70.73.32.47]) by smtp-out-03.shaw.ca with ESMTP; 24 Sep 2014 08:39:51 -0600 From: "Dale Scott" To: "'William A. Mahaffey III'" , References: <5422B1C5.1030400@hiwaay.net> In-Reply-To: <5422B1C5.1030400@hiwaay.net> Subject: RE: pkg must be version 1.3.8 or greater Date: Wed, 24 Sep 2014 08:39:55 -0600 Message-ID: <005601cfd805$6848c7b0$38da5710$@shaw.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKHDFULvxOzKgXC2DesdvnOcyXIIAHqmVEBmpKa5FA= Content-Language: en-us X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 14:39:53 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of William A. Mahaffey III > Sent: Wednesday, September 24, 2014 5:58 AM > To: freebsd-questions@freebsd.org > Subject: Re: pkg must be version 1.3.8 or greater > > On 09/23/14 01:44, Ruben Schade wrote: > > Hi everyone, > > > > Running FreeBSD amd64 10.0-RELEAESE-p9. Installed everything from pkg, > > very nice system. > > > > Prefer building nginx from ports, so portsnapped the latest tree and > > did the usual: > > > > > # cd /usr/ports/www/nginx > > > # make install clean > > > > Got the following error: > > > > ===> nginx-1.6.2,2 pkg(8) must be version 1.3.8 or greater, but you > > have 1.3.7. You must upgrade pkg(8) first. > > > > > > The portsnap messes with pkg's logic about what needs upgrading & what > doesn't, there have been other posts on this topic over the last several weeks > (notably from me) .... Ports & Pkg's are usually updated by the maintainers > about weekly, ports often/usually on Wednesday, Pkg's on Saturday. My > experience is that if you wait until Saturday, your 'pkg-upgrade' will work as > desired & you will be off to the races. > Alternatively, you can 'pkg install -yf ....' your pkg & move on immediately .... In > general, for me, you should do any pkg-upgrades > *before* you mess w/ ports. $0.02, no more no less .... Just deal with same for SquirrelMail. I had already installed SquirrelMail as a binary package, but then realized the LDAP option wasn't turned on so had to compile from ports (which is when I got the dreaded error "pkg(8) must be version 1.3.8 or greater, but you have 1.3.7. You must upgrade pkg(8) first."). # pkg upgrade (nothing) # portsnap fetch update (a few) # pkg install portmaster # portmaster pkg (equivalent of "pkg delete pkg-xxx" followed by "make install clean", but wasn't sure about pkg deleting itself so used portmaster) # cd /usr/ports/mail/squirrelmail # pkg delete squirrelmail # make config # make install clean # pkg lock squirrelmail-20140717_1 (to prevent pkg in future from upgrading squirrelmail using the default binary package and losing the LDAP option) Regards, Dale