From owner-freebsd-questions@FreeBSD.ORG Wed Sep 13 02:41:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 68A6116A417 for ; Wed, 13 Sep 2006 02:41:32 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED58643D5F for ; Wed, 13 Sep 2006 02:41:24 +0000 (GMT) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.50) id 1GNKgm-0002Us-QH for freebsd-questions@freebsd.org; Wed, 13 Sep 2006 03:41:24 +0100 Received: from esperance.zetnet.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.13.6/8.13.6/Debian-1) with SMTP id k8D2fMii006824 for ; Wed, 13 Sep 2006 03:41:22 +0100 Received: (qmail 70780 invoked by uid 1001); 13 Sep 2006 02:41:17 -0000 From: "Frank Shute" Date: Wed, 13 Sep 2006 03:41:17 +0100 To: ograbme Message-ID: <20060913024117.GA65435@melon.esperance-linux.co.uk> References: <8a0028260609120341v61920cf5p3aad4710ef3bd634@mail.gmail.com> <186816020.20060912160233@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <186816020.20060912160233@gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.1-RELEASE-p3 i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (zetnet.co.uk [194.247.46.1]); Wed, 13 Sep 2006 03:41:23 +0100 (BST) Cc: freebsd-questions@freebsd.org Subject: Re: The Ports collection / FreeBSD CDs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 02:41:32 -0000 On Tue, Sep 12, 2006 at 04:02:33PM -0400, ograbme wrote: > > Howdie Jeff (if I may) and others, > > Tuesday, September 12, 2006, 6:41:38 AM, you wrote: > > JR> On 12/09/06, Arindam wrote: > > > >> > >> I chose not to install the ports collection because as of now, I do > >> not have access to Internet in my home-network and it would take a > >> little while before I can set it up for browsing. > > > > I too took this same approach as the box I installed FreeBSD 6.1 > Release is not hooked up to the Internet. I bypassed installing the > Ports collection. The installation went well and I have been > refamiliarizing myself with Unix CLI commands and reading bits and > pieces of documentation here and there. FreeBSD is pretty neat and has > quite a few subtle differences from systems I worked on some years > back, i.e., Solaris, HP-UX, etc. > > Anyway, now I would like to install the ports collection without > having to reinstall the whole system again, if possible, thus my > interest in this thread. > > For instance, I decided I wanted to install sudo ... > > > > JR> The FreeBSD installation program asks if you want "to install the ports > JR> collection," but what it actually does is install a bunch of directories > JR> (under /usr/ports) that you can use to browse what's available in the ports > JR> collection. For example, to download a port, say, Firefox compiled for use > JR> with the Linux compatibility layer, go into /usr/ports/linux/linux-firefox > JR> and type: > > JR> $ make install clean > > Using the above info, I created /usr/ports directory (/usr was there, > but not /ports of course as I hadn't installed the Ports collection). > I created another directory under /usr/ports/ named /sudo, thus > resulting in /usr/ports/sudo. > > I had mounted the ports CD I have and located sudo-1.6.8p12.tar.gz in > the distfiles directory. I copied it over into the /usr/ports/sudo > directory, gunzipped it, and then untarred it. > > I then made sure I was in the directory containing sudo.c and all its > attendent other files and tried the above "make install clean". > Unfortunately it was a no-go. Resultant message I received was: > > "make: Don't know how to make install. Stop" > > Obviously I've done something wrong here ... misstepped or tried to do > the impossible, huh? LOL! Perhaps, sudo can only be installed via the > pkg-add route per your mention below? I invoked sysinstall, but didn't > see right away anything clearly indicating the "path to take" in > resolving my dilemma. I'll keep reading and trying and may be stumble > across the proper way to accomplish this, but all the while monitoring > this email list for further enlightenment. > > Then again, may be I should just do a complete new install and select > "Yes" to installing the Ports collection at that time, huh? Naaaaah, > one has to mess up to learn! And trust me, I've learned quite a bit > by reading yours and others comments and suggestions. Thank for all > of you being so willing to share your knowledge. > > Thanks in advance. Go grab the compressed, reasonably up to date ports tree: $ fetch -dpv ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz (warning! 35MB compressed) and: # mv ports.tar.gz /usr/ports # cd /usr/ports # tar xvzf ports.tar.gz to build sudo, first check that there's nothing funny with building sudo: $ cat /usr/ports/UPDATING | grep sudo if there's nothing then: # cd /usr/ports/security/sudo/ # make install clean Then read the handbook about keeping your ports tree up to date using portsnap or cvsup. > > P.S. Please advise what the proper mode of responding is in terms of > replying. I did a "reply all" (to both Jeff and the list) for my > first submission. However, perhaps I should of only replied to the > list to eliminate unnecessary traffic. > > > That's OK. I usually post to the list and cc to the person who posted in the first place as they may not be subscribed to the list. Welcome to FreeBSD! -- Frank echo "f r a n k @ e s p e r a n c e - l i n u x . c o . u k" | sed 's/ //g' --->PGP keyID: 0x10BD6F4B<---