FedoraThis forum is for the discussion of the Fedora Project.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I do not need a link to the rpm, they are already installed. But other rpms expect them in /lib/modules/build, and they are not there. I can't even search for them, because I don't know their names. I have to leave, will check back later. TIA.
I thought it was an empty directory and madwifi/ndiswrapper threw errors when I tried to run them. I didn't realized when I first ran the madwifi rpm that it was looking for files that are supposed to be in lib/modules/build. I need to know the path that the link pointed to so I can recreate it.
Also, the rpms that look in lib/modules/build for the kernel source apparently cannot use that link, so I will need to enter the path when I run the package. But I am having one heck of a time getting anyone to tell me what the path is. I've seen a lot of posts with this same problem, but none of the replies solve the problem.
I'm at work now. I think I messed up that path in the original post. I believe it is /lib/modules/<kernel>/build. I know I need to recreate the symbolic link, but I can't find anyone who can tell me where it should point.
[Larry@luger ~]$ ls -l /lib/modules/2.6.15-1.2054_FC5
total 1148
drwxr-xr-x 2 root root 4096 Mar 14 14:02 extra
drwxr-xr-x 10 root root 4096 Aug 27 00:46 kernel
-rw-r--r-- 1 root root 239062 Aug 27 00:47 modules.alias
-rw-r--r-- 1 root root 69 Aug 27 00:47 modules.ccwmap
-rw-r--r-- 1 root root 238199 Aug 27 00:47 modules.dep
-rw-r--r-- 1 root root 813 Aug 27 00:47 modules.ieee1394map
-rw-r--r-- 1 root root 206 Aug 27 00:47 modules.inputmap
-rw-r--r-- 1 root root 11158 Aug 27 00:47 modules.isapnpmap
-rw-r--r-- 1 root root 182372 Aug 27 00:47 modules.pcimap
-rw-r--r-- 1 root root 799 Aug 27 00:47 modules.seriomap
-rw-r--r-- 1 root root 104167 Aug 27 00:47 modules.symbols
-rw-r--r-- 1 root root 279653 Aug 27 00:47 modules.usbmap
lrwxrwxrwx 1 root root 5 Aug 27 00:46 source -> build
drwxr-xr-x 2 root root 4096 Mar 14 14:02 updates
Of course, what I need to know is what the build symbolic link "build" is supposed to point to. Mine is missing because I did not know about symbolic links until I had already deleted it. Lart me if you must, but I am learning and now I think I can fix it if I just know where it pointed when it was there.
Here's the other command requested:
[Larry@luger ~]$ uname -r
2.6.15-1.2054_FC5
I guess I'll just have to reinstall to find out what "Link target" says for /lib/modules/2.6.15-1.2054_FC5/build. Maybe the problem is that I'm too GUI based. Someone would need to browse to the link in Nautilus (or equivilent) to check the properties. Although, I would think there is a command line way to determine the target. I just don't know what it is yet.
No need to reinstall. Just make a simlink, something like:
su
cd /lib/modules
ln -s /lib/modules/$(uname -r) build
If it still has problems just boot to an earlier kernel and get rid of the new kernel. Might work without booting the earlier kernel but I haven't tried it. Oh, and back-up any compiled modules (such as nvidia.ko) unless you want to recompile them.
rpm -qa kernel
rpm -e kernel-2.6.15-1.2054_FC5
Now remove the lib/modules/2.6.15-1.2054_FC5 folder
But I finally learned what the problem is.
The basic FC5 install apparently has a bug.
/lib/modules/2.6.15-1.2054_FC5/build is a broken link.
After the reinstall, I updated the kernel and then installed the kernel headers and source, all with yum.
Now, I have /lib/modules/2.6.17-1.2174_FC5/build with stuff actually in "build". Everything looks good, but I am seeking opinions now on the best way to proceed with setting up my DWL-G650 wireless card (madwifi vs. ndiswrapper vs. Linuxant DriverLoader.)
I plan to post a definitive thread with all relevant search terms to help others find it, because it seems a lot of folks are running into the same problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.