LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2005, 12:16 AM   #1
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Rep: Reputation: 15
Talking Need help understanding Kernel version error


Hello,

I am running CentOS version 4.1 with Kernel version 2.6.9-11.EL.
I am trying to install a license server. When I attempt installation I immediately get this error:

Checking platform for correct operating system version...
ERROR: Linux kernel must be 2.2.12 or later!

This particular software says requirements are for eith HP Unix or RedHat.

I don't see why that this, being CentOS, instead of RedHat would cause this to happen. Anyone have any ideas of why the install script thinks this is not the kernel version that it is??? I was told on this Forum that CentOS is essentially RedHat. Where is the script looking to find the kernel version? Is there somewhere I can make a change so that the Install script sees that this is the right Kernel version? Any help is greatly appreciated!!

Last edited by iansoundz; 12-01-2005 at 12:18 AM.
 
Old 12-01-2005, 12:39 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Hart to tell where it's going to look, you could conceivably
try to look in the script yourself. `uname -r` is a likely candidate.

But maybe the script is just getting the maths wrong if Centos
appends the EL stuff ...


Cheers,
Tink
 
Old 12-01-2005, 01:02 AM   #3
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
yeah but where is the kernel version held? When you do a uname -r, Linux outputs the kernel version. So where is this info stored that programs know which kernel version the OS is using? What is the ".EL" portion of the kernel number mean?? For some reason when the installation process is happening, it thinks the kernel version is below 2.2.12. Why? How can I correct this so it sees that this is really 2.6-11.EL? The Install won't continue untill I find away to correct this.
 
Old 12-01-2005, 01:09 AM   #4
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
Unhappy

Ok. I guess the kernel version is determined from /proc/version. I checked it and it is 2.6-11.EL. I am curious what the ".EL" means though. I am still no closer to figuring out why the software Installation process thinks my kernel version is below 2.2-12 though. Heeeeelp!
 
Old 12-01-2005, 01:19 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,976

Rep: Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565
Quote:
Originally posted by Tinkster
... you could conceivably try to look in the script yourself.
Did you ???.

What's the point of chasing the nuances of the kernel name (extension) if you haven't checked the script for what it's looking for.
If it's a program rather than a script, you're probably SOL.
 
Old 12-01-2005, 01:41 AM   #6
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
yes I did. It says:

echo Checking for correct operating system version...
uname -a >$LOG
. $INSTALL/license/bin/.nc_wrapper

if [-z "$ARCH" ]
then UnsupportedArchitecture
blah blah


As you should see, it does a uname -a

when I issue a uname -a, I get:

Linux Shenk.Shnockered.net 2.6-11.EL #1 Wed Jun 8 'the time, proccesor type"

Any ideas? Thanks forthe help BTW
 
Old 12-01-2005, 01:59 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,976

Rep: Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565
First, cut and paste when providing information. Bad info is at best misleading, at worst useless.
I doubt very much that "uname -a" returned what you cited - "2.6-11.EL" ????.

If I were you I keep digging - see what that ".nc_wrapper" is looking for.
How old is this product ???. If it's too old, the script(s) may not have been written to handle anything above 2.4.?.
Could be as simple as dodgy math, who knows.
 
Old 12-01-2005, 02:47 AM   #8
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
Whoops! Kernel version is 2.6.9-11.EL

I found this in .nc_wrapper:

Linux )
if [ -s /etc/redhat-release ]
then case $UNAME_R in
2.2.1[2-9]* | 2.2.[2-9]* | 2.4.[2-9]* | 2.4.1[0-9]* ) : ;;
* ) Error "Linux kernel must be 2.2.12 or later!" ;;
esac

I noticed that no kernel version above 2.4.19 is mentioned. Should I edit this portion to include 2.6.9-11.EL? My guess is that this software was written pre 2.6 version. When I edit this portion should it look like this:


Linux )
if [ -s /etc/redhat-release ]
then case $UNAME_R in
2.2.1[2-9]* | 2.2.[2-9]* | 2.4.[2-9]* | 2.4.1[0-9]* | 2.6.[1-11.EL]* ) : ;;
* ) Error "Linux kernel must be 2.2.12 or later!" ;;
esac

BTW, if I seem like a newb....I AM! Thanks again for your help!

Last edited by iansoundz; 12-01-2005 at 02:51 AM.
 
Old 12-01-2005, 03:01 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,976

Rep: Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565
Not worth playing with - delete (or better, comment out) that bit of code.
Simple is almost always best.
 
Old 12-01-2005, 03:04 AM   #10
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
Are you saying do this:

#Linux )
if [ -s /etc/redhat-release ]
then case $UNAME_R in
2.2.1[2-9]* | 2.2.[2-9]* | 2.4.[2-9]* | 2.4.1[0-9]* ) : ;;
* ) Error "Linux kernel must be 2.2.12 or later!" ;;
esac

Will this break something else as the rest of the script runs? Or did you mean something else?
 
Old 12-01-2005, 04:23 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,976

Rep: Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565Reputation: 2565
Nope, that wasn't what I meant - and you'd need to look at the full script.
Perhaps you were right - maybe update the code as follows;
Code:
Linux )
if [ -s /etc/redhat-release ]
then case $UNAME_R in
2.2.1[2-9]* | 2.2.[2-9]* | 2.4.[2-9]* | 2.4.1[0-9]* | 2.6.[0-9]* ) : ;;
* ) Error "Linux kernel must be 2.2.12 or later!" ;;
esac
 
Old 12-01-2005, 10:02 AM   #12
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
Thank you very much! I will try that.

I'm off to work now. I will be sure to let you know how it went
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
kernel version mismatch error Pratik H Pandya Programming 0 09-03-2005 12:43 AM
Building Kernel (mdkcustom) -- Magic Version error! NachoKB Mandriva 1 08-05-2004 03:29 PM
Can't load module :error kernel version mismatch garv Linux - Software 1 04-05-2004 12:47 PM
understanding the linux kernel rsingh Linux - Newbie 2 10-29-2003 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration