Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi, Im fairly new to the linux scene and was having trouble compiling ndiswrapper.
I am running Fedora 4 and when i try to compile the program it gives the error:
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4/build;
ive tried installing all the development modules as well as the kernal-devel rpms off the dvd and also tried different versions of the source all to no luck
ive searched everywhere and cant seem to find the answers so sory if this has been answered before but any help would be greatly appreciated.
yeah thanks for that i found that was the problem thanks heaps for the help now all i gotta do is figure out why ndiswrapper wont insert into the kernel using 'modprobe ndiswrapper'....im getting an "invalid module format"....ill look around the forms for this but if anyone knows a fix that would be great
When I run 'modprobe ndiswrapper', I get 'Invalid module format' error. What do I do?
This issue has nothing to do with ndiswrapper - it is just kernel module compilation issue and if you are having difficulties with issue, seek help in channels meant for kernel e.g., kernelnewbies or your distribution. The following hints may help you.
* The kernel running should have been compiled from the same sources as ndiswrapper is.
* The compiler used for compiling kernel should be same as the one used to compile ndiswrapper. To make sure these conditions are met, run cat /proc/version and modinfo ndiswrapper and make sure that they match both compiler and kernel versions. If they do not match, you need to recompile either ndiswrapper or kernel or both. One sure way to get it right is to make sure that you have proper kernel headers installed: check that ls -l /lib/modules/$(uname -r)/build/include/linux/version.h does not give error and shows the information about that file.
* If you use precompiled kernel, make sure also that your kernel sources have exact same kernel configuration used for compiling kernel e.g., copy kernel configuration from /proc/config.gz or /boot/config-<version> into /lib/modules/uname -r/build/.config, such as gunzip < /proc/config.gz > /lib/modules/$(uname -r)/build/.config. Then recompile and install ndiswrapper.
ok i think i found the problem....my kernel is version i586 and in my impatientness and lack of linux knowledge installed the i686 source..so ndiswrapper was compiled using 686 and the kernal is 586 so im guessing thats the problem....can i just delete the folder with the wrong source or do i have to uninstall it somehow if so how?
You can just delete that folder. Be aware though, if you changed anything to the configuration yourself you might want to keep the config file so you don't have to redo it completely. Then you can install a new kernel source. You'll want i686 probably cause it'll do for most PCs for some time now. If it doesn't automatically change the link /usr/src/linux to the new directory like this:
ln -s /usr/src/linux-(version) /usr/src/linux
And check if the build link is there. If it's not create it as well.
one note....my kernal is 686 and my source was 586.....anyway i deleted the 586 source from '/usr/src/kernal/' and went to install the 686 source but it said the package was already installed (said this for 586 and 686) how do i fully remove it from the system so i can get the 686 on there?
Did you install it with your package management system? Then you have to delete it with that too. In the future if you want to delete stuff try to do it with the package manager first before manually doing it.
hey just like to say thanks for all your help.....i rebuilt the box and everything worked first time
all that needs to be done now is all the irq's etc need to be set up as the card is seen in the hardware tab of the network devices window but not in the devices tab....is there a way of automatically assigning these values?