From owner-freebsd-questions@FreeBSD.ORG Fri Aug 21 18:12:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAF4B106568E for ; Fri, 21 Aug 2009 18:12:25 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-yw0-f199.google.com (mail-yw0-f199.google.com [209.85.211.199]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD168FC26 for ; Fri, 21 Aug 2009 18:12:25 +0000 (UTC) Received: by ywh37 with SMTP id 37so1244734ywh.28 for ; Fri, 21 Aug 2009 11:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=PDxNghvk/e8h/ocjGMry9CzY7Kp5lPWj6zMA4Y7NOUM=; b=DeluFcBa/s3AMCDE52zN51RgWC78y7K2N8e6JNe89Xea8QvieDBzeLXWlPOoueQaSe VcCOV7bpClraEwMOTTkaopkDkvwKgCZySJBrevcJu7uhvLhtQVh187+nsVbTHY3w2Xl4 L2UMc9h1aeGsPQ61WSo08jtSb9cWBYbDRCsfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xIC7KllTDTI42qsxUbbeiScsjpLdLP1I+uMpW3B/zGH1LEsFIkzGisv+zYw8Fitmfy lFQRVrgvihzab0o1AHKhYUjz396T9+WdrS5R4um/GYKhcZVJzzKf7BaxMmRQLQvl4sZe LEz20K/jgu37G/m11RyX/tZa+mwStCCbdlIjI= MIME-Version: 1.0 Received: by 10.150.70.6 with SMTP id s6mr1471809yba.335.1250878344751; Fri, 21 Aug 2009 11:12:24 -0700 (PDT) In-Reply-To: <4A8ED2D5.30808@videotron.ca> References: <4A8DD867.9020604@videotron.ca> <1250812091.28087.23.camel@lholcombe-desktop> <4A8ED2D5.30808@videotron.ca> Date: Fri, 21 Aug 2009 13:12:23 -0500 Message-ID: <6201873e0908211112j280b4b0cr93e8c86d9a692d38@mail.gmail.com> From: Adam Vande More To: PJ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: lane@cd-solutions.net, freebsd-questions@freebsd.org Subject: Re: installation sequence X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 18:12:26 -0000 On Fri, Aug 21, 2009 at 12:01 PM, PJ wrote: > Lane Holcombe wrote: > > I'm all over this! > > > > Here's what you do: Setup for yourself a local cvs repository like so: > > > > portinstall -Pp net/cvsup-mirror > > > > You have to make decisions about what to mirror, but in the end you will > > have a semi-authoritative mirror of all the source and ports for the > > whole dang FreeBSD development tree, that will maintain itself and be > > ready when you need it. > > > > Next, when ever you do a fresh install of "FreeBSD whatever," the first > > thing you do after the install is update your source and ports try by > > creating a cvsupfile, (I always keep one in /usr/local/etc/cvsupfile) > > like this: > > > > > > *default host= > > *default base=/usr > > *default prefix=/usr > > *default release=cvs delete use-rel-suffix tag=RELENG_7 > > *default compress > > src-all > > src-contrib > > ports-all tag=. > > > > > > Note that the and tags are put in the email for clarity, > > but should NOT appear in your cvsup file. I think src-contrib is > > overkill, but I've not bothered to find out because I'm pretty lazy. > > > > Note, also that RELENG_7 is just what I'm using now. You should adjust > > to the "FreeBSD whatever" that you just installed. > > > > So after you put the cvsupfile in place, run this on your new install: > > > > csup -g -L2 /path/to/cvsupfile > > > > Note, again, that csup does *not* get installed with *base before like > > 6.3 or something ... can't remember which. Did I mention lazy? If you > > are going back that far you have to install csup from ports or install > > cvsup from ports. (Which may likely put you back at square one where > > you have to work through the build failures - it ain't perfect, but it's > > nearly there!) > > > > Anyway, the point is you should always, always, always update your ports > > tree after a new install so you don't have build failures to stump you. > > > > And you still might get those :) > > > > So you should consider REBUILDING WORLD immediately after you do a new > > install. And THEN build/install whatever ports you need ... > > Ok, I normally do something like that... problem here was that I made > the mistake of thinking that an interesting little script I found was > good for updating... but, I was sadly mistaken. The error was due to a > badly downloaded ports tree. That fixed, all works fine. > I really only have problems when some extraneous garbage comes along and > I'm suckere in to try it. > Here's the script (I modified it and it seems to work just fine) but I > sure would like to hear if that makes sense. > I called it update.ports and it runs from any directory. It can be > changed to update source and docs if so desired or all could be done > from same script. Let me know, please, if it's ok? > ====== > #!/bin/sh > # > # Update source, docs and ports > > LOCAL_DIR="$(pwd)" > > cd /usr/share/examples/cvsup > csup ports-supfile > cd /usr/ports > make fetchindex > > /usr/local/sbin/portsdb -u > /usr//local/sbin/pkgdb -uvF > > cd $LOCAL_DIR > ======= > > > > > Good Luck! > > > > lane > > > > On Thu, 2009-08-20 at 19:12 -0400, PJ wrote: > >> Does anybody have an idea of what the oder of files and dependencies is > >> to install programs without all sorts of nonsensical errors? > >> I usually have no problem installing FreeBsd whatever with apache22, > >> cups, samba, php, mysql xorg etc. etc. I say usually because from time > >> to time there do crop up some conflicts and they can usually be resolved > >> by just looking at the error messages when the install is interrupted... > >> usually one reinstalls the guilty port and voila! all things are in an > >> ordered universe! > >> But how do you avoid those error messages... I installed a pretty > >> minimal 7.2 about a week ago and since then have been putzing about with > >> a more serious installation of 7.2 on a larger disk to include xorg and > >> a number of pretty cumbersome applications. > >> I usually start with samba as that permits me to wander about on my lan > >> and download and play around with other stuff while I am waiting for > >> those substantial installs like jdk and xorg et al. > >> So now, I have installed samba... works fine... thereafter I have been > >> installing jdk16 and some other proggies like openldap and php5 and > >> mysql ... actually, I was doing those because apache22 wouldn't > >> compile... it grinds out a slew of errors that all seem to be related to > >> ldap..."util_ldap.c:2135 (or other numbers) and all have the notation > >> "undeclared (first use in this function) and finally the ghost gives up > >> with Error code 1. > >> > >> Exactly the same installation with the same configuration on the smaller > >> installation went without a hitch... (and on the same computer, > >> different disk) The versions are the latest available and on 7.2... > >> I have tried uninstalling php5, openldap, and removing the work > >> directory for apache22, but the result is always the same... this is > >> absurd. > >> Can anybody make any sense of this... I don't like the idea of starting > >> all over again... done that, been there, and still looking for some > >> rationality to this world. > >> Thanks for any ideas... > >> _______________________________________________ > >> freebsd-questions@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >> To unsubscribe, send any mail to > >> "freebsd-questions-unsubscribe@freebsd.org" > >> > > > > > > Sounds like you're really struggling hard to reinvent the wheel. Why not use portsnap and portmaster? -- Adam Vande More