LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to install kernal-source code? (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-kernal-source-code-190695/)

jmg1894 06-07-2004 10:40 AM

how to install kernal-source code?
 
I need help installing new source code in Red hat Linux 9.0. I am installing a openswitch12 card which will be an IVR. In order to install the drivers for the card I need the kernel source and a complete compiling system installed. I installed the correct source file after that I get an error
gcc>= 2.96-98 is needed by kernel-source 2.4.20-8
What does this mean? and how can I fix this?

zeropash 06-07-2004 10:43 AM

it simply means that you need to install the 2.96-98 or later versions of gcc.
download the same and install it

bulliver 06-07-2004 10:44 AM

It's complaining that you compiler (gcc) is too old. You need to update it. I suppose the easiest way is to find an rpm for it.

I am using gcc 3.3.2 for instance, and it would seem that yours is older than 2.96

jmg1894 06-07-2004 10:46 AM

Where would I find this compiler? On the cd with Red Hat? Does it matter what version as long as its higher than 2.96?

bulliver 06-07-2004 11:00 AM

http://fr.rpmfind.net/linux/rpm2html...mit=Search+...

You might as well install the latest and greatest: 3.3.2 for redhat is down about 15 lines.

NOTE: you will probably need to update your entire toolchain...ie: make, autoconf, binutils.

If rpm complains when you update your gcc then find the dependancies you need on www.rpmfind.org and install them.

foo_bar_foo 06-07-2004 12:56 PM

Quote:

Originally posted by bulliver

You might as well install the latest and greatest: 3.3.2 for redhat

hold on there ...
i think just get the exact compiler
2.96-98 the package manager says.
the more modern compilers are not backward compatable with binaries made with the older ones.......
if you install 3.3.2
or even 3.0
the stuff it compiles may be broken.
also you can only / should only compile a kernel module with exactly the same compiler used to compile the kernel itself !
it won't let you do otherwise

jmg1894 06-07-2004 01:29 PM

When I run the new 3.2.2-5 rpm file I now get the following message:
Failed
binutils>= 2.12.900.7-1
cpp= 3.2.2-5
blibc-devel>= 2.2.90-12

Does this mean I have to upgrade these before the 3.2.2-5 will work?

DrOzz 06-07-2004 01:34 PM

Quote:

bullriver said

NOTE: you will probably need to update your entire toolchain...ie: make, autoconf, binutils.

If rpm complains when you update your gcc then find the dependancies you need on www.rpmfind.org and install them.
Quote:

jmg1894 said:

When I run the new 3.2.2-5 rpm file I now get the following message:
Failed
binutils>= 2.12.900.7-1
cpp= 3.2.2-5
blibc-devel>= 2.2.90-12

Does this mean I have to upgrade these before the 3.2.2-5 will work?

that was already told to you ...

Genesee 06-07-2004 06:06 PM

Quote:

Originally posted by jmg1894
When I run the new 3.2.2-5 rpm file I now get the following message:
Failed
binutils>= 2.12.900.7-1
cpp= 3.2.2-5
blibc-devel>= 2.2.90-12

Does this mean I have to upgrade these before the 3.2.2-5 will work?

yes - track down and install at least those version numbers or newer. welcome to dependency hell :D you may want to run some searches on an app called "apt" (or maybe "apt-rpm"?) - it assists with dependency checking, etc. good luck


All times are GMT -5. The time now is 01:13 AM.