Date: Fri, 12 Sep 2003 11:24:26 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Paul Cocker <paul.cocker@fph-tr.nhs.uk> Cc: freebsd-questions@freebsd.org Subject: Re: whereis fails Message-ID: <20030912102426.GA79875@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <AAA188B90503DD4F952ED7541E24E3A2141E82@EXCHMAUL.xfph-tr.nhs.uk> References: <AAA188B90503DD4F952ED7541E24E3A2141E82@EXCHMAUL.xfph-tr.nhs.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Sep 12, 2003 at 10:10:22AM +0100, Paul Cocker wrote:
> Trying to use the "whereis" command, e.g. whereis XFree86-4 only to get t=
he error:
>=20
> Warning: Couldn't stat file /usr/local/man!
> Warning: Couldn't stat file /usr/X11R6/man!
> XFree86-4:
>=20
> Neither of these directories exist (local, X11R6). When I installed Free=
BSD 4.7-RELEASE I installed bin, crypto, man and ports.
Yup. whereis(1) is entirely correct to complain about some missing
standard filesystem structure. You can fix things up by:
# mtree -U -p /usr/local < /etc/mtree/BSD.local.dist
# mtree -U -p /usr/X11R6 < /etc/mtree/BSD.x11-4.dist
but you'll still be missing all of the man pages and things that were
meant to go into those directories. I'm also wandering how you
managed to do an install and avoid haveing the system generate all
that stuff for you. There's no knowing what else could be missing.
If you have the time, disk space and inclination, I'd recommend that
you install cvsup, pull down the latest ports tree and the latest
4.7-RELEASE-pN sources (or 4.8-RELEASE-pN if you fancy something more
up to date) and do a full {install,build}world cycle, install
portupgrade(1) and update any installed ports. That sounds like a
great deal of work, but most of it involves sitting back with the hot
beverage of your choice while the computer compiles stuff. Detailed
instructions can be found in the Handbook, particularly:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.=
html
These are also good references:
http://www.onlamp.com/pub/a/bsd/2002/01/24/FreeBSD_Basics.html
http://www.onlamp.com/pub/a/bsd/2001/11/29/Big_Scary_Daemons.html
Cheers,
Matthew
--=20
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQE/YZ7adtESqEQa7a0RAnrWAJ48YokwOnNWyz8bB8HGKtfLvLyMnACaAvOK
cFAmMoaYQ+uTPSfJU0fTf3k=
=5YeW
-----END PGP SIGNATURE-----
--45Z9DzgjV8m4Oswq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030912102426.GA79875>
