开发者

How to make Linux kernel

开发者 https://www.devze.com 2023-04-06 22:03 出处:网络
I navigated to the directory usr/src/linuex-headers-2.6.38-8 and type make. I got the following error message.

I navigated to the directory usr/src/linuex-headers-2.6.38-8 and type make. I got the following error message.

No rule to make target `kernel/bounds.c', needed by `kernel/bou开发者_StackOverflow中文版nds.s'

How do I solve this problem? I am using ubuntu...


Did you run

make config

before typing make^? Do you have permissions to create files in the directory? Did you look on Canonical's site for instructions on building a kernel?

If you do not want to use the source code given, you can fetch the latest kernel from GitHub. Ordinarily, there would be copies on kernel.org, but the site was compromised recently and taken down for re-installation.

^ - If you do not want to answer a thousand questions, there are alternate commands such as

        make menuconfig


This is copied from an answer on the Ubuntu forums:

Installing the kernel sources using apt / aptitude / synaptic / whatsoever only puts the compressed source code into /usr/src. You need to uncompress the sources:
$ cd /usr/src
$ sudo tar -xvjf linux-source-$YOUR_VERSION_HERE.tar.bz2
Then just change into the new /usr/src/linux-source-$YOUR_VERSION_HERE directory and built your kernel like you used to

You'll often find if you paste the exact error message into Google the answer just pops right up :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号