MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
hi all,
i couldnt compile 2.6.7 and older kernel on Mandriva 2006. is the reason that Mandriva has gcc 4.0.1.
what can i do? is there any solution for kernel compilation with gcc 4.0.1?
thanks.
May I ask why you're looking to use that old of a kernel version?
Mandriva 2006 ships with 2.6.12. Also, keep in mind, that any kernel for Mandriva needs to have a few, special modules loaded into it. I don't know where you can get these modules, other than from the Mandriva 2.6.12-12mdk kernel source (which is included on the install DVD/CDs).
i m trying to install rtlinux. in order to install rtlinux, first of all, i have to install kernel 2.4 or 2.6.9prepatched ones. in order to compile them, i need gcc 2.95.3 otherwise $make menuconfig command does not work.
I'm not saying this is the best idea, or the fastest, but I would maybe suggest installing a secondary linux distro onto another partition - an older version of a linux distro, or even Debian! I'm pretty sure Debian uses the 2.4 kernel. So, just install an older version of a distro, and then use that distro's older version of gcc.
OH, I just had another idea (I'm sorry, I just woke up ), go to the GCC download page and download an older version, and change the $PREFIX= value when installing it.
I hope this helps in some way. I'm not even fully awake yet.
oh that's fine.
I'd never heard of rtlinux until I read this post (then I googled it).
If you download a source tarball from http://gcc.gnu.org/releases.html you will need your currently existing gcc. I'm not sure how much you know about compiling from source, but it's pretty much a four step process:
1. Download the tarball and unpackage it. If it's *.tar.gz, type "tar -zxf tarball.tar.gz. If it's *.tar.bz2, type "tar -jxf tarball.tar.bz2.
2. Inside the new folder (created from unpackaging the tarball), run
Code:
./configure
Here you can set options like PREFIX, and other pre-compilation settings.
3. Run make.
Code:
$ make
4. Now, install it.
Code:
$ make install
For a list of all pre-compile options available to you type: ./configure --help
When you set PREFIX, you are telling where to install the compiled program to. I'm saying to set this yourself so that there aren't any conflicts with your existing gcc, and so that it's easier to remove when you should no longer need it.
Personally, I like setting my prefix to /opt. (PREFIX=/opt/)
It's an unused directory - pretty much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.