PDA

View Full Version : NDISWRAPPER Question



C1ivey
16th July 2006, 10:29 AM
Hi, I am new to linux. I have Fedora 5 installed on my desktop, and I am trying to connect to my BT Voyager router using a netgear WG111T usb adapter. From what I have read online, I need to install NDISWRAPPER. The problem is when I try to run

make install

in the ndiswrapper directory, I get this error message:

make -C driver install
make[1]: Entering directory '/home/cb/Desktop/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/cb/Desktop/ndiswrapper-1.19/driver'
make: *** [install] Error 2

It says in the INSTALL file to make sure there is a link to the kernel source from the modules directory and that the command

ls /lib/modules/'uname -r'/build

should have at least 'include' directory and 'config' file.
When I type this command I get

/lib/modules/2.6.15-1.024_FC5/build

Does anyone know what I should do?
Thanks.

agostinho
16th July 2006, 11:03 AM
Hi. I have a similar problem.
A solution that seems to work in some cases can be found in http://forum.fedoraforum.org/forum/showthread.php?t=116927&highlight=source+kernel+fc5
but it didn't work for me.
Good luck!

platomxv
16th July 2006, 02:30 PM
Do uname -r to determine the your kernel version number.

Then do rpm -qa kernel* (the asterisk is important) This will tell you what kernels you have installed and most important what kernel-devel modules you have installed. It apperars that you do not have kernel-devel (your version number) installed.

On my system, these show:

[platomxv@T30host ~]$ uname -r
2.6.16-1.2133_FC5
[platomxv@T30host ~]$ rpm -qa kernel*
kernel-2.6.17-1.2145_FC5
kernel-devel-2.6.17-1.2145_FC5
kernel-2.6.16-1.2133_FC5
kernel-devel-2.6.16-1.2133_FC5

Take note of the last two lines.

If you do not have the correct kernel-devel installed, install it with yum
su -
(password)
yum install kernel-devel -(your version number)

Then try to install ndiswrapper again. When you follow the install instructions carefully, ndiswrapper does work.

Norm

C1ivey
16th July 2006, 11:44 PM
Thanks for the reply platomxv.
When I type uname -r , I get

2.6.15-1.2054_FC5

and for rpm -qa kernel* , I get

kernel-2.6.15-1.2054_FC5

I then tried

yum install kernel-devel 2.6.15-1.2054_FC5

as root , and I got

Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Core [1/3]
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core

I am not really sure what the problem is here either? Do you have any idea? Thanks again.

platomxv
17th July 2006, 01:00 AM
C1ivey, your yum repositories are not set up correctly. Go to this site:

http://stanton-finley.net/fedora_core_5_installation_notes.html

In the contents section find the yum. Follow the instructions in the yum section to configure your repositories and then try to install kernel-devel again. Stan Finley's installation notes are required reading. Bookmark this site! You will need it

Norm