NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Dan_TW
Posts: 3
0 Kudos

NI-VISA install for linux kernel 3.0

Hi,

 

I am running into issues regarding the version of the Linux Kernel. I am attempting to install Nikal as part of the NI-VISA package using the procedure found here: https://decibel.ni.com/content/docs/DOC-6742#comment-21933

When I run the command as in the above procedure $ ./updateNIDrivers I get the following error message:

 

********************************* ERROR ***********************************
ERROR: 3.0 kernels are not supported!
Running a 2.4.x or 2.6.x kernel is required to continue this installation.
**********************************
ERROR ************************************

 

I also get this error when installing NI-488.2. Has anyone successfully completed this procedure using a 3.0 kernel or does anyone know of a way around this issue?

 

I am running kernel version 3.0.0-17-generic on Ubuntu 4.6.1

 

Thanks,

Dan

Member
Rohama_K
Posts: 162
0 Kudos

Re: NI-VISA install for linux kernel 3.0

Hi Dan,

 

Did you see the response irwan posted to your comment here?

Rohama K.
Applications Engineer
National Instruments
Member
Dan_TW
Posts: 3
0 Kudos

Re: NI-VISA install for linux kernel 3.0

Yes I did see the post by Irwan. I have implemented those changes and I am still getting the same error message.

Member
Rohama_K
Posts: 162
0 Kudos

Re: NI-VISA install for linux kernel 3.0

Irwan also said to try grepping:

 

cd /usr/local/natinst/

grep -r ERROR.*kernel *

 

 and see what other scripts out there still have that check. Did that work?

Rohama K.
Applications Engineer
National Instruments
Member
Sak1s
Posts: 22
0 Kudos

Re: NI-VISA install for linux kernel 3.0

 

 

you can try this.. :

 

  • nano +253 /usr/local/natinst/nikal/src/utility.sh  

place a comment at the start of this string ..-

 return $statusFail  ->  #   return $statusFail

 

  • nano +314 /usr/local/natinst/nikal/src/nikal/configure

place again a comment at the start of this string

  exit $statusFail  ->  #   exit $statusFail

 

 

Ελευθερία σημαίνει ότι μαθαίνεις να έχεις απαιτήσεις μόνο από τον εαυτό σου, όχι από τη ζωή ή τους άλλους
Member
Dan_TW
Posts: 3
0 Kudos

Re: NI-VISA install for linux kernel 3.0

Thank you for the input. I have double checked to make sure that all kernel version checks have been suppressed and the methods above still produce the same error. 

 

I have installed VM player running Ubuntu 8.10 (i386) with kernel version 2.6 in hopes of getting the software to install in the suggested enviornment, and worry about making changes for a newer kernel later. It is worth mentioning that the i386 system architecture is required to execute the installs of the software that is linked in the above procedure. My results for each of the software packages are as follows:

 

1) Nikal

          Install sucessful. 

          Worth noting that entering nikaliPostInstall returns command not found. 

          modprobe nikal returns nothing so I am to assume that nothing indicates that the module is working.

 

2) NI-488.2

          Install semi-successful.

          modprobe nipalk and modprobe gpibprtk returns command not found.

          modprobe nikal still returns nothing.  

          /etc/init.d/nipal restart return no such file or directory

 

3) VISA

          Entering ./updateNIDrivers returns NI-KAL sucessfully updated, however missing nipalk.ko, NiViPciK.ko, niorbk.ko, nidimk.ko, NiViPxiK.ko, nipxirmk.ko

          Entering visaconf returns libnipalu.so failed to initialize. Aborted

 

4) PyVisa

          Install successful

 

5) NIdaqmxbase

          Entering ./FWUpdate returns libnipalu.so failed to initialize. Aborted

          Entering lsdaq returns libnipalu.so failed to initialize. Aborted

 

Any thoughts?

Member
Sak1s
Posts: 22
0 Kudos

Re: NI-VISA install for linux kernel 3.0

yes i forgot....edit the /etc/init.d/nipal script end find the following lines...

 

elif [ "$kernelMinor" -eq 6 ]; then
   KERNEL_MODULE_EXTENSION=ko
else
   echo "nipal: $kernelVersion kernel not supported"
   exit 1
 fi

and replace the  "exit 1" with KERNEL_MODULE_EXTENSION=ko

--------------------------------------------------------------------------------------------------

 

 

elif [ "$kernelMinor" -eq 6 ]; then
   KERNEL_MODULE_EXTENSION=ko
else
   echo "nipal: $kernelVersion kernel not supported"
    KERNEL_MODULE_EXTENSION=ko
 fi

 

 

restart the nipal service

Ελευθερία σημαίνει ότι μαθαίνεις να έχεις απαιτήσεις μόνο από τον εαυτό σου, όχι από τη ζωή ή τους άλλους
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page