How do I install FreeBSD kernel source code?
Q. I need to configure FreeBSD kernel but not able to find out source code in /usr/src/sys directory. How do I install FreeBSD source code?
A.Your kernel and all related source code is located at /usr/src/sys directory which is also accessible through the /sys path.
If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running sysinstall as root, choosing Configure, then Distributions, then src, then base and sys
# sysinstall

Select Configure

Select Distributions

Select src

Then base and sys > Select ok

Further readings
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- You need to have the Linux kernel source installed for this driver
- How do I upgrade the kernel in Linux without compiling from source code?
- FreeBSD make: don't know how to make buildkernel. Stop Error and Solution
- Redhat enterprise Linux / CentOS installing kernel source code
- Linux turn on kernel preemption
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: distributions, freebsd_kernel, kernel_source, source code, usr


Recent Comments
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
10/14/2008 03:10 pm (2 days ago) ~ 3 Comments
10/14/2008 01:36 pm (2 days ago) ~ 3 Comments
10/14/2008 10:04 am (2 days ago) ~ 1 Comment