Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've compiled the last stable ubuntu kernel (2.6.38-...) following this guide: How to compile a Ubuntu 10.10 kernel but in this guide doesn't explain how create linux-libc-dev package for that kernel? How do I do?

I've tried with fakeroot debian/rules binary-arch-headers but it returns an, IMHO, absurd error:

mkdir /home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/
mkdir: cannot create directory `/home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/': File exists
make: *** [install-arch-headers] Error 1

The error is correct but this folder is created in the same process!!

share|improve this question

1 Answer 1

The error is caused because mkdir returns a failure if a directory exists (there is a good reason for this - you'd have to ask K&R&etc. to get it, though).

Just remove the directory it tries to create: /home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/.

share|improve this answer
    
All "mkdir" in original Makefile were "mkdir -p". –  Simón May 9 '11 at 9:34
    
@Simon Oh. In that case just delete the directory it trys to create. –  new123456 May 9 '11 at 11:20

Your Answer

 
discard

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.