Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NIKAL1.9, NI 488.2, NI-VISA on CentOS 5.3 32 Bits

Hi All,

 

I'm trying to install NI-488.2 and NI-VISA on a fresh CentOS 5.3 32 Bits x386 system.

 

Kernel: uname -r gives  2.6.18-128.el5

 

I did install the kernel headers with 

 

yum install kernel-devel

 

Unfortunately during instalation, sh ./INSTALL,  I get the error message 

 

 

 

 ******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.18-128.el5/source does not appear to be
* for the 2.6.18-128.el5 kernel.
* Ensure that kernel source for the 2.6.18-128.el5 kernel is installed
* and configured.  Refer to the README file for the product you are           *
* installing for information about configuring your kernel source.            *
******************************** ERROR ****************************************

 

Does anybody know a solution for this issue?

 

Best regards and thank you in advance

 

peter

0 Kudos
Message 1 of 5
(4,543 Views)

Hi Peter,

here's a list of supported operating systems for the GPIB driver: GPIB Driver Versions

You could try and re-install the kernel sources entirely. This centos page describes how. 

 

Searching the forums lead me to the following entry: NI-488.2 install error Kernel source problem

This thread refers to other threads containing information and patches for the NI-KAL.

 

I am a Windows / Mac OS user myself, so hopefully we'll get some additional information from Linux users in this forum. 

 

Best regards, 

Peter

--
Peter A.
Field Sales Engineer, NI Germany
0 Kudos
Message 2 of 5
(4,504 Views)

Hi Peter,

 

thank you for your response.

 

I did try

 

cd /usr/src/kernels/2.6.18-128.1.6.el5-i686/include/linux
mv version.h version.h.orig
cat utsrelease.h version.h.orig > version.h

ln -s /usr/src/kernels/2.6.18-128.1.6.el5-i686/include/asm/asm-offsets.h /usr/src/kernels/2.6.18-128.1.6.el5-i686/include/asm/asm_offsets.h

 

as suggested in 

 

http://forums.ni.com/ni/board/message?board.id=250&thread.id=27554&view=by_date_ascending&page=3

 

This is my version .h

 

#define UTS_RELEASE "2.6.18-128.1.6.el5"
#define LINUX_VERSION_CODE 132626
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#define RHEL_MAJOR 5
#define RHEL_MINOR 3
#define RHEL_RELEASE_CODE 1283
#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))

 

But I still have the avard winning stupid error message

 

..

* Kernel source in /lib/modules/2.6.18-128.el5/source does not appear to be
* for the 2.6.18-128.el5 kernel.

 

..

 

What is really tested here?

 

Best regards and thank you in advance peter

 

 

0 Kudos
Message 3 of 5
(4,496 Views)

muellerp wrote:

 

I did try

 

cd /usr/src/kernels/2.6.18-128.1.6.el5-i686/include/linux
mv version.h version.h.orig
cat utsrelease.h version.h.orig > version.h

ln -s /usr/src/kernels/2.6.18-128.1.6.el5-i686/include/asm/asm-offsets.h /usr/src/kernels/2.6.18-128.1.6.el5-i686/include/asm/asm_offsets.h

 

as suggested in 

 

http://forums.ni.com/ni/board/message?board.id=250&thread.id=27554&view=by_date_ascending&page=3

 


This isn't needed as long as you are using the latest version of NI-KAL (currently 1.9).  From the subject of this post it looks like you are using the latest version so you should be fine.

 

Of course looking at the path you provided to your kernel source probably shows the answer to your problem.   "2.6.18-128.1.6.el5-i686" is probably not the kernel source for "2.6.18-128.el5"

 


muellerp wrote:

What is really tested here?


All of these checks come from NI-KAL, and NI-KAL 1.9 does the following to trigger this error:

 

   # check that the headers dir that we found is for the correct version of
   # the kernel
   sourceVersionStatus=$statusSuccess
   if [ "`$GREP UTS_RELEASE $headersDir/include/linux/version.h | $GREP -c \"$kernelVersion\"`" = "0" ]; then
      if [ -e $headersDir/include/linux/utsrelease.h ]; then
         if [ "`$GREP UTS_RELEASE $headersDir/include/linux/utsrelease.h | $GREP -c \"$kernelVersion\"`" = "0" ]; then
            sourceVersionStatus=$statusFail
         fi
      else
         sourceVersionStatus=$statusFail
      fi
   fi

 

As you can see from what you posted in your version.h "2.6.18-128.1.6.el5" is not the same thing as "2.6.18-128.el5" so we fail.  I would just run:

 

yum update kernel

yum update kernel-devel

# double check that you have matching kernel and kernel-devel versions

rpm -qa | grep ^kernel

reboot

 

Then try the installer again.

 

Shawn Bohrer

National Instruments

Use NI products on Linux? Come join the NI Linux Users Community
Message 4 of 5
(4,482 Views)

Hi Shawn,

 

many thanks for your help. Updating the system did help. (There was no indication at CentOS that there are software updates available. So I did this manually with the 'software updater'. )

 

Than I installed in the following order:

 

NIKAL 1.9

NI-488.2-beta-2.5.1b1

NI-VISA-4.5.0

 

Thanks again. As of today

 

CentOS 5.3, x86 32Bit system, this is doing the job.

 

Best regards peter

 

0 Kudos
Message 5 of 5
(4,475 Views)