PDA

View Full Version : Need help installing madwifi on FC5


Quiltface
2006-03-28, 08:33 AM CST
:confused: So I just installed FC5 on my toshiba laptop, I was going to install the madwifi drivers so I can use my wireless card. but after i run the make command i get this error

Makefile.inc:113: *** KERNELPATH: does not exist. Stop.

So i scratched my head for a minute becauses thats the extent of my linux troubleshooting. I tried for a hours to find the kernelpath but i cant find it. I think in theory it should be in /usr/src/linux well i dont have that directory but i have a /usr/src/redhat but that directory is empty (redhat is the only directory in /usr/src/)

When i try to export the kernelpath to /usr/src/redhat i get another error about not finding the .config

I have used these drivers with last 2 or 3 versions of Fedora fine.... not even a hiccup in installing them.

Any help would be GREATLY appreciated!

Quiltface
2006-03-28, 03:42 PM CST
***bump***

FeRDNYC
2006-04-06, 12:23 PM CDT
You have to install the kernel-devel package for your running kernel to compile any modules against it. Just run yum install kernel-devel-`uname -r` as root and the devel tree for the currently-running kernel will be installed.

(If you need to install the devel package for a kernel other than the running one, you have to specify its release manually instead of using uname:yum install kernel-devel-2.6.16-SOMEOTHERBUILD
installs the kernel-devel package matching kernel-SOMEOTHERBUILD. Simple.

Afterwards you should have a /usr/src/kernels/ tree with at least one directory in it, named for the kernel release you installed kernel-devel for.

Once kernel-devel-(mumble) is installed, the Makefile for your module should automatically know where to look for the module build environment. Best to completely delete the previous attempt and start over with a fresh extraction from the driver source .tar, in case your previous attempt caused some broken config files to be generated when it couldn't find the right path.

(You may also need to install other things, like the gcc compiler packages or other -devel packages, in order to be able to compile the module(s). But no kernel bits can be build without kernel-devel.)

imdeemvp
2006-04-06, 08:43 PM CDT
You must use livna or atrpms to install madwifi. This is how I did it in fc4: http://www.fedoraforum.org/forum/showthread.php?t=43718

scotta3234
2006-04-12, 07:51 PM CDT
Every other package installed great in FC5 except for this... yum install madwifi is giving me the Cannot open/read repomd.xml file for repository, no other mirrors to try error? I'm sure i have my repos.d correct. Tried with both atrpms and atrpms-stable... any suggestions. I'm hoping it's something simple