From owner-freebsd-questions@FreeBSD.ORG Fri Dec 12 06:40:53 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 4818316A4CE for ; Fri, 12 Dec 2003 06:40:53 -0800 (PST) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 464A343D2D for ; Fri, 12 Dec 2003 06:40:48 -0800 (PST) (envelope-from kdk@daleco.biz) Received: from daleco.biz ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 12 Dec 2003 08:43:51 -0600 Message-ID: <3FD9D33C.20006@daleco.biz> Date: Fri, 12 Dec 2003 08:39:56 -0600 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031124 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Minter References: <60BC2DDD-2CB0-11D8-814C-000A95761B04@bellsouth.net> In-Reply-To: <60BC2DDD-2CB0-11D8-814C-000A95761B04@bellsouth.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Dec 2003 14:43:52.0093 (UTC) FILETIME=[5C4634D0:01C3C0BE] cc: freebsd-questions@freebsd.org Subject: Re: lost man pages after reinstalling and upgrading macosX 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: Fri, 12 Dec 2003 14:40:53 -0000 John Minter wrote: > Since I have reinstalled macosx (v 10.2) and upgraded to > current v 10.2.8, i no longer can reach my man pages or > many of my commands. on startup of terminal i get message > saying system cannot find manpath or grep. I have tried to > track down the problem, but can't seem to get the system > to recognize many of my basic commands, including cp and > man, for example. Please help. I'm a newbie to UNIX, and > have been reading trying to learn it. I understand the mac's > darwin is based on BSD. Thanks and forgive me if I've intruded > on this list with an improper question. Well, first thing, wrap your lines for the benefit of the guyz whose MUA's like to see newlines. If you know the path to system binaries, explicity calling them at the prompt may help, e.g.: #/bin/ls -l /home/mydir If Darwin's much like BSD, you should see, when doing "ls -l" in your homedir, several files with a dot in front of them, (e.g. .cshrc, .profile, .login) These files help set up stuff like your binary search path. Any chance they were clobbered in your "upgrade"? Echoing an environment variable may tell you what path is currently set, e.g.: -------------------------------------------------------------------------- [/home/kadmin][8:32] #echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin: /usr/local/bin:/usr/X11R6/bin:/root/bin:/usr/local/libexec/nut --------------------------------------------------------------------------- In BSD, manpath(1) uses the contents of the user's search path to attempt to determine the path to manual pages, so I'd start by fixing the search path problem. What shell do you use? In csh/tcsh, ---------------------------------------------------------------- #set PATH=/sbin:/bin:/usr/sbin:/usr/bin (etc............) ---------------------------------------------------------------- may help. In sh/bash, I *think* it's ---------------------------------------------------------------- $PATH=/bin:/sbin:/usr/bin: (etc......) $export PATH; ---------------------------------------------------------------- HTH somewhat, Kevin Kinsey DaleCo, S.P.