LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Makefile:66: *** Cannot find a kernel config file. Stop (https://www.linuxquestions.org/questions/linux-newbie-8/makefile-66-%2A%2A%2A-cannot-find-a-kernel-config-file-stop-161774/)

NHBlacklabs 03-24-2004 09:03 AM

Makefile:66: *** Cannot find a kernel config file. Stop
 
Ok, so just when I think I am getting the hang of it... bam

Makefile:66: *** Cannot find a kernel config file. Stop.\

Trying to do a make && make install for the aironet mini PCI driver.

Any thoughts?

zmieff 03-24-2004 09:04 AM

have typed ./config before make and make install??

NHBlacklabs 03-24-2004 09:27 AM

[root@localhost airo_mpi-20031220]# ./config make
bash: ./config: No such file or directory

What am I missing? Besides the obvious ;-)

zmieff 03-24-2004 09:35 AM

not
Code:

./config make
only
Code:

./configure

thehundredthone 03-24-2004 10:31 AM

usually just a

./configure
./make
./make install

but i think the kernel config file that it is asking for is from the kernel source. usually you need that. you can get the source for your currently running kernel (if it is the one your distro gave you) from the installation CDs

jschiwal 03-24-2004 04:43 PM

The config file it is looking for is .config located in the source file for that version of the kernel. It is produced by the make config or make xconfig step. It defines what modules you want compiled into the kernel, which run time kernel modules you want, as well as other options.

NHBlacklabs 03-24-2004 06:51 PM

Ok, thank you for all of your replies....

Now, my kernel source is in /usr/src/linux-2.4.21-9.0.1.EL/

Do I need to make changes to the Makefile in the airo_mpi-20031220? Sorry if I am not giving enough details, just thinking that it might be looking in the wrong place for the config file?!?

I will continue to trial and error and see what I come up with....

Thought I was graduating beyond, but still just a:
:newbie:

thehundredthone 03-25-2004 04:03 AM

if you're in an rpm based distro then generally the kernel-source rpm contains a .config file as well.
even if you're in slackware, i would think that the kernel source would be available, and usually with a .config file. :)
and even if you use gentoo or arch that require you to compile from source, while compiling the kernel you will make a .config file :D

just cd to /usr/src/<kernel> and do an ls -a|more

.config should be in that list

if not, just go to the kernel source dir, and put in make xconfig or make menuconfig. if a .config file isn't available, a readymade one will be constructed using defaults in a subdir of the kernel ;)

you should now have a .config file ready to use :cool:


All times are GMT -5. The time now is 02:05 PM.