LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to install driver for f5d7050 belkin on fedora 5 (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-install-driver-for-f5d7050-belkin-on-fedora-5-a-463145/)

palinaal 07-11-2006 10:03 PM

Unable to install driver for f5d7050 belkin on fedora 5
 
When trying to run make and make install I am getting the following errors.
root@localhost ndiswrapper-1.19]# make
make -C driver
make[1]: Entering directory `/home/black/ndiswrapper-1.19/driver'
Can't find kernel build files in /lib/modules/2.6.15-1.2054_FC5/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/black/ndiswrapper-1.19/driver'
make: *** [all] Error 2

[root@localhost ndiswrapper-1.19]# make install
make -C driver install
make[1]: Entering directory `/home/black/ndiswrapper-1.19/driver'
Can't find kernel build files in /lib/modules/2.6.15-1.2054_FC5/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/black/ndiswrapper-1.19/driver'
make: *** [install] Error 2




When I go to /lib/modules... and look at build the link is broken and the following error is display when looking at the properties.

The link can't be used, because its target "usr/src/kernels/2.6.15-1.2054_FC5-i686" doesn't exist.

I am very new to Fedora so your help would be greatly apreciated.
Pat

DeusExLinux 07-11-2006 10:28 PM

You're going to have to install the kernel source... and the headers.

When you compile somehting like that, you complile it for a specific kernel... You must have the source installed to do this.

palinaal 07-12-2006 08:35 AM

thanks
 
Thanks you. Is the kernal source and header on the cd's I created? Not sure how to get that installed. using fedora core 5.

DeusExLinux 07-12-2006 11:31 AM

It should be on there somewhere. if not, you can google for the .rpm for it.

Also found this on fedora's page
Quote:

8.6. Following Generic Textbooks

Many of the tutorials, examples, and textbooks about Linux kernel development assume the kernel sources are installed under the /usr/src/linux/ directory. If you make a symbolic link, as shown below, you should be able to use those learning materials with the Fedora Core packages. Install the appropriate kernel sources, as shown earlier, and then run the following command:

su -c 'ln -s /usr/src/kernels/kernel-<all-the-rest> /usr/src/linux'

Enter the root password when prompted.
might be able to follow that.

EDIT:

Here's the page that came from.. http://fedora.redhat.com/docs/release-notes/fc5/ Lots of great info if you just want to build the headers or do the full source. You should check it out. Good reading.


All times are GMT -5. The time now is 02:10 AM.