make, etc, whereis, commands broken

Warren shinjii at virusinfo.rdksupportinc.com
Wed Mar 2 14:59:54 GMT 2005


> Well, since we still have no idea what you actually did to your
> system, there's no way we can give exact directions for repairing it.
> Is /usr/bin/make present at all?  If not, you'll have to reinstall it
> *somehow*, and the same for other missing executables.

i was in /usr an accidentally typed rm -rf *>core

This is whats in /usr/bin
chfn            login           passwd          ypchfn
chpass          make            rlogin          ypchpass
chsh            opieinfo        rsh             ypchsh
crontab         opiepasswd      su              yppasswd


> If you asked more *precise* questions, we would have a much easier
> time providing specific answers.  It would also be useful if you
> provided more information on your system, as well as its problems.

The main problem is that if i try to use make without using /usr/bin/make it 
fails .. when using it for e.g. to do an installworld i get..

enterprise# /usr/bin/make installworld
/usr/bin/env: not found
"/usr/src/Makefile", line 91: warning: "/usr/bin/env -i 
PATH=/sbin:/bin:/usr/sbin:/usr/bin /usr/bin/make    -f /dev/null -V 
MAKEOBJDIRPREFIX dummy" returned non-zero status
awk: not found
"/usr/src/Makefile.inc1", line 97: warning: "awk 
'/^#define[[:space:]]*__FreeBSD_version/ { print 
$3 }'  /usr/include/osreldate.h" returned non-zero status
/usr/bin/mktemp: not found
"/usr/src/Makefile.inc1", line 138: warning: "/usr/bin/mktemp -d -u -t 
install" returned non-zero status
id: not found
ERROR: Required smmsp user is missing, see /usr/src/UPDATING.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

==============

This when doing a portupgrade..

enterprise# /usr/bin/make installworld
/usr/bin/env: not found
"/usr/src/Makefile", line 91: warning: "/usr/bin/env -i 
PATH=/sbin:/bin:/usr/sbin:/usr/bin /usr/bin/make    -f /dev/null -V 
MAKEOBJDIRPREFIX dummy" returned non-zero status
awk: not found
"/usr/src/Makefile.inc1", line 97: warning: "awk 
'/^#define[[:space:]]*__FreeBSD_version/ { print 
$3 }'  /usr/include/osreldate.h" returned non-zero status
/usr/bin/mktemp: not found
"/usr/src/Makefile.inc1", line 138: warning: "/usr/bin/mktemp -d -u -t 
install" returned non-zero status
id: not found
ERROR: Required smmsp user is missing, see /usr/src/UPDATING.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

-- 
Yours Sincerely
Shinjii
http://www.shinji.nq.nu


More information about the freebsd-questions mailing list