Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Macbook Pro and I want to build the Linux Kernel. Can I build 3.3.6 on my Mac? How?

share|improve this question
If you have gcc, binutils and make, yes... it should be possible. – diegows May 12 '12 at 18:55
@diegows how could I install binutils? I have gcc and make. – Coder404 May 12 '12 at 19:04
You can compile from source on your own or use a nice package manager like Homebrew (mxcl.github.com/homebrew) – Ben May 12 '12 at 19:21
@Ben How do I compile from source? From what website do I get the source – Coder404 May 12 '12 at 19:53
@Coder404 GNU binutils: gnu.org/software/binutils – Lekensteyn May 12 '12 at 20:13
up vote 1 down vote accepted

There's an excellent site for newbies about Linux Kernel, it's called kernelnewbies.

You'll find on it an excellent tutorial explaining how you can get the source, configure and compile the Linux Kernel.

But, beware, it's not an easy task. There's really many many many options to look at and to understand before you can start to build a decent one. It can be a little more complicated on Mac OS X, since you won't have any oldconfig ready to recompile.

BTW, there's also an interesting book made by Greg Kroah-Hartman.

share|improve this answer
don't worry about oldconfig, there is an alternative: defconfig. – Peter Teoh Aug 21 '14 at 7:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.