Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hey guys, I upgraded etch to lenny, and along with that gcc 4.1 to 4.2.
Later, I recompiled the kernel. Now, when I reboot my kernel panics because it can't insert any modules, because they were all compiled with 4.1
How can I recompile all the modules?
Thanks for your help.
Last edited by joe2748; 11-14-2007 at 08:56 PM.
Reason: Solved
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Doesn't make since if you upgraded to gcc4.2 and then after it was fully installed you built the kernel. Not sure but maybe the system is still 4.1 till a reboot? Would have to give this a thought to get in.
1) changed all references in sources.list to etch to lenny
2) ran apt-get update
3) ran apt dist upgrade
This downloaded a lot of stuff, and installed as expected.
4) rebooted. On reboot, there was a noticable visual difference, I assumed all was well.
Then, I decided I needed to reinstall my nvidia driver, because it wasn't being detected properly (it wasn't in etch either). When running the nvidia script, the gcc version check failed, because the current compiler was 4.2, and the kernel (it said) was compiled in 4.1 .
So, I figured I would just recompile the kernel with the new gcc and all would be well. Recompile went fine, but on reboot none of the modules will insert, it is again complaining about the compiler version.
If I use a live cd will mounting the hd and running "make modules" work? Or does the make rely on a bunch of system variables that wont be set properly if I boot into a live cd?
Please help, I worked quite a bit to get the sound card to work on this machine, I don't want to run through it all again on a fresh install of lenny.
Well, I guess it is time to take the plunge, I'm going to reinstall today, I think I will go with Gutsy though. Is there a way to install Gutsy and Lenny in the same partition? Just like you can have two kernels installed on the same partition, you just boot into one or the other?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.