-
GETTING HEAD-er files
alright, I'm attempting to install my ndiswrapper, and everything is going peachy until:
Code:
[root@Cynab tmp]# tar -xvzf ndiswrapper-1.38.tar.gz
[root@Cynab tmp]# cd ndiswrapper-1.38
[root@Cynab ndiswrapper-1.38]# make uninstall
[root@Cynab ndiswrapper-1.38]# make
make -C driver
make[1]: Entering directory ' home/cynab/ndiswrapper-1.38/driver'
Can't find kernel build files in /lib/modules/2.6.18-1.2798.fc6/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
Now, in the INSTALL file of nwiswrapper, it says to make sure that I got a recent kernel (I'm fairly sure I got the most recent stable.) and to make sure there is a link to the kernel source from the modules directory. It wants
ls /lib/modules/'uname -r'/build
to show at least the "include" directory and ".config" file. On checking, I have none of these things, so, it's up to you fine folks to offer a clue. Thanks in advance.
-
You will need to go to the mirror that you downloaded FC6 from. The folder is: Code:
6/core/source/rpms/
, and the file is called Code:
kernel-2.6.18-1.2798.fc6.src.rpm
. Open it in fedora, and install it.
Now, go here Code:
/lib/modules/2.6.18-1.2798.fc6/
there should be a thing called build, but it dissapears when you click on it. Now go to Right-click on the folder, and choose create link. Copy that link into the Code:
/lib/modules/2.6.18-1.2798.fc6/
folder, and rename it to Say yes to overwrite.
This should allow you to run the makefile without errors. Also, please post how your install goes. I ran into problems installing the driver using the Code:
modprobe ndiswrapper
command. It said invalid module format.
-
Any time you install a new kernel you should make sure to install the source for that kernel as well. Also, check and make sure that the symlink /usr/src/linux points to the new kernel.
Also, if the new kernel headers weren't installed it helps to run at least the make command on the new kernel source as some newer packages reference the kernel headers instead of the actual source.
-
Thanks for the advice you guys! I won't be able to attempt your wisdom for several days, but when I'm done fiddling with it, I'll be sure to post back with any success!!!
Again, I appreciate it! :D