Hi guys.. i'm getting this on installing lsof
I don't know how to install kernel source, i'm new to this, can someone tell me how?
Code:
[root@shells /usr/ports/sysutils/lsof]# make install clean
=> lsof_4.84A.freebsd.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://www.SpringDaemons.com/stas/.
fetch: http://www.SpringDaemons.com/stas/lsof_4.84A.freebsd.tar.bz2: Not Found
=> Attempting to fetch from http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/.
fetch: http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/lsof_4.84A.freebsd.tar.bz2: Not Found
=> Attempting to fetch from ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/.
fetch: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.84A.freebsd.tar.bz2: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/.
lsof_4.84A.freebsd.tar.bz2 100% of 462 kB 397 kBps
===> Extracting for lsof-4.84A,5
=> MD5 Checksum OK for lsof_4.84A.freebsd.tar.bz2.
=> SHA256 Checksum OK for lsof_4.84A.freebsd.tar.bz2.
===> Patching for lsof-4.84A,5
===> Configuring for lsof-4.84A,5
!!!WARNING!!! No kernel sources in /usr/src/sys or /sys
Creating ./lockf_owner.h from /kern/kern_lockf.c
FATAL ERROR: can't read /kern/kern_lockf.c
FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)
===> Script "Configure" failed unexpectedly.
Please report the problem to ler@lerctr.org [maintainer] and attach the
"/usr/ports/sysutils/lsof/work/lsof_4.84A.freebsd/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/sysutils/lsof.
I don't know how to install kernel source, i'm new to this, can someone tell me how?