Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I 'm trying to compile a package in Ubuntu but getting error

"linux/autoconf.h: No such file or directory"

Now I see that the missing file is under /usr/src/linux-headers-2.6.38-11-generic/include/generated".

Where do I have to copy this file in order for the program to compile? I'm new to linux so please be specific if possible.

Update: Ok making progress. I think I have to copy the autoconf.h to a default location where the Linux kernel can find it.

I'm using Ubuntu 11.04. This is how my /usr/src folder looks like:

linux-headers-2.6.38-11-generic     
linux-headers-2.6.38-generic    
linux-headers-2.6.38-11
linux-headers-2.6.38-8
nvidia-current-270.41.06

Anyone know where I should copy the autoconf.h file?

share

migration rejected from stackoverflow.com May 16 at 2:14

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Braiam, Eric Carvalho, Sneetsher, BuZZ-dEE, psusi May 16 at 2:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This describes a problem that can't be reproduced that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – Eric Carvalho, Sneetsher, BuZZ-dEE, psusi
If this question can be reworded to fit the rules in the help center, please edit the question.

    
You might have better luck asking in Super User. However, this is programming related so I'm not going to downvote it. –  Michael Oct 7 '11 at 1:21
1  
a shot in the dark, have you actually autoconf installed? There is no general autoconf.h file, its always generated in a configure process. –  evildead Oct 7 '11 at 1:27
    
yes the autoconf.h file exists. I mention that on my question. The problem is that I'm new to Linux and I don't know where it should go in order for my program to find it. –  Marquinio Oct 7 '11 at 1:29
1  
What are you trying to compile? Is it a kernel module? –  derobert Oct 7 '11 at 1:42
    
Its a USB driver –  Marquinio Oct 7 '11 at 1:46

1 Answer 1

go to your kernel source and type

     make oldconfig
     make prepare

That solved me the problem

share

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