Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

How to install NI-VISA in ubuntu12.04

Hello,

My ubuntu version information is pasted below.

Ubuntu 12.04.5 LTS \n \l

Linux version 3.2.0-70-generic-pae (buildd@kapok) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #105-Ubuntu SMP Wed Sep 24 20:08:22 UTC 2014

I am using Labview 2012 for the development under windows, just to run the app under Linux.

When I install NI-VISA-5.4.0, paste the install information below

# ./INSTALL

*****************************************************************************

  NI-VISA for Linux

     version 5.4.0f0 for Linux

*****************************************************************************

National Instruments products support the following Linux distributions:

   openSUSE

   Red Hat Enterprise Linux Desktop + Workstation

   Scientific Linux

Refer to README.txt for the latest information at the time of release.

Refer to www.ni.com/linux for the most recent information about Linux

support at National Instruments.

Continue? [Yn] y

Checking required install tools...

Checking installer tool versions...

rpm        4.9.1.1 can be used with a default installation path

tar        1.26

Checking dependencies...

Warning: glibc was not found in the rpm database, but

         it appears to be installed on your system.

         This most likely means you are not using a RPM based

         Linux distribution, and need to manually populate your

         RPM database, or install with the --nodeps option.

# ./INSTALL --nodeps

*****************************************************************************

  NI-VISA for Linux

     version 5.4.0f0 for Linux

*****************************************************************************

*****************************************************************************

   Warning: --nodeps is an unsupported option.

            Installing without dependency checking is dangerous.

            Only use this option if you know what you are doing.

*****************************************************************************

National Instruments products support the following Linux distributions:

   openSUSE

   Red Hat Enterprise Linux Desktop + Workstation

   Scientific Linux

Refer to README.txt for the latest information at the time of release.

Refer to www.ni.com/linux for the most recent information about Linux

support at National Instruments.

Continue? [Yn] y

Checking required install tools...

Checking installer tool versions...

rpm        4.9.1.1 can be used with a default installation path

tar        1.26

Checking dependencies...

glibc      2.15

Unpacking install files to /tmp/nivisa-5.4.0f0.install...

NATIONAL INSTRUMENTS SOFTWARE LICENSE AGREEMENT (LINUX DRIVER SOFTWARE)

INSTALLATION NOTICE: THIS IS A CONTRACT. BEFORE YOU DOWNLOAD THE SOFTWARE AND/OR

COMPLETE THE INSTALLATION PROCESS, CAREFULLY READ THIS AGREEMENT. BY DOWNLOADING

THE SOFTWARE AND/OR ENTERING 'y' TO COMPLETE THE INSTALLATION PROCESS, YOU

CONSENT TO THE TERMS OF THIS AGREEMENT AND YOU AGREE TO BE BOUND BY THIS

AGREEMENT. IF YOU DO NOT WISH TO BECOME A PARTY TO THIS AGREEMENT AND BE BOUND

BY ALL OF ITS TERMS AND CONDITIONS, ENTER 'n' OR 'q' TO CANCEL THE INSTALLATION

PROCESS, DO NOT INSTALL OR USE THE SOFTWARE, AND RETURN THE SOFTWARE (INCLUDING,

IF APPLICABLE, ALL ACCOMPANYING WRITTEN MATERIALS, ALONG WITH THEIR CONTAINERS)

WITHIN THIRTY (30) DAYS OF RECEIPT OF THE SOFTWARE TO THE PLACE YOU OBTAINED

THEM. ALL RETURNS SHALL BE SUBJECT TO NI'S THEN CURRENT RETURN POLICY.

1. Definitions. As used in this Agreement, the following terms have the

following meanings:

A. "You." Means you the individual using the SOFTWARE as well as your employer

if you are using the SOFTWARE within the scope of your employment. If you are

using the SOFTWARE within the scope of your employment, then you represent that

you are authorized to bind your employer to this Agreement.

...............

By installing this software, you are acknowledging acceptance of the terms

of the included license file (LICENSE.txt).

Do you accept the license? [ynq] y

NI-VISA for Linux version 5.4.0f0

is about to be installed using rpm at /usr/local/natinst

Would you like to continue? [Yn] y

Installing NI-VISA for Linux version 5.4.0f0...

Pre Installation .

Post Installation .

Pre Installation ...................................

rpm: RPM should not be used directly install RPM packages, use Alien instead!

rpm: However assuming you know what you are doing...

Preparing...                ########################################### [100%]

   1:labview-2012-rte       ########################################### [  4%]

   2:nirpci                 ########################################### [  7%]

   3:nikali                 ########################################### [ 11%]

   4:nipalki                ########################################### [ 15%]

   5:nivisak                ########################################### [ 19%]

   6:nisvcloc               ########################################### [ 22%]

   7:nispyi                 ########################################### [ 26%]

   8:nipalerri              ########################################### [ 30%]

   9:nipali                 ########################################### [ 33%]

  10:niorbki                ########################################### [ 37%]

  11:niorbi                 ########################################### [ 41%]

  12:nidimki                ########################################### [ 44%]

  13:nidimi                 ########################################### [ 48%]

  14:nimdbgki               ########################################### [ 52%]

  15:nimdbgi                ########################################### [ 56%]

  16:nimxdfki               ########################################### [ 59%]

  17:nimxdfi                ########################################### [ 63%]

  18:nipxipfki              ########################################### [ 67%]

  19:nimdnsresponder        ########################################### [ 70%]

  20:nivisa                 ########################################### [ 74%]

  21:niapalerri             ########################################### [ 78%]

  22:nipxipfi               ########################################### [ 81%]

  23:nipxirmi               ########################################### [ 85%]

  24:nivisa-config          ########################################### [ 89%]

  25:nivisa-devel           ########################################### [ 93%]

  26:nivisaserver           ########################################### [ 96%]

  27:niiotracei             ########################################### [100%]

/var/tmp/rpm-tmp.ZmoTcu: 316: [: -a: unexpected operator

Post Installation ...................................

Updating modversions database to include newly installed drivers...

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO

THE PATENTS.txt FILE ON /home/labuser/Labview_install_files/NI-visa AND/OR

www.ni.com/patents

******************************************************************************

* A reboot is required before attempting to use the

* NI-VISA for Linux software.

******************************************************************************

Would you like to reboot now? [yes|no] yes

NI-VISA for Linux Installation completed successfully.

Please reboot manually before attempting to use

NI-VISA for Linux software.

Reboot the target and Run visaconf command for the configuration.

# visaconf

libnipalu.so failed to initialize

Perhaps you need to run updateNIDrivers

Aborted (core dumped)

Run updateNIDrivers

After update complete, re-Run visaconf still got the same error with before.

Please help look into this, not sure if due to the version of linux and the ni-visa or lack of some lib file.

Thanks a lot!

Best regards,

Larry

Message 1 of 15
(10,382 Views)

How much RAM do you have? Check dmesg to see if libnipalu.so failed, because you have more than or = 4GB  of RAM

0 Kudos
Message 2 of 15
(6,533 Views)

Hi, Mig

thanks a lot for your reply.

Here is the system HW, it should be 4G RAM

ubuntu.PNG

Then I remove one bank of RAM, it should be 2G RAM now, show below

ubuntu2.PNG

I uninstall the NI-VISA and re-install like before, and then updateNIDrivers.

Still meet the same problems,

# visaconf

libnipalu.so failed to initialize

Perhaps you need to run updateNIDrivers

Aborted (core dumped)

And I cannot dmesg any information about nipalu by "dmesg | grep nipalu"

Should I modified scripts before install?  Or anything I ignore?

Thanks a lot & Best regards,

0 Kudos
Message 3 of 15
(6,533 Views)

For me it looks good: you have right kernel version.

I only tried it with Mageia 2 with kernel 3.3 and it worked.

But it is rpm distribution. I think you should wait for answer from someone who use deb distro.

In my actual machine (Core i5-3570 4GiB, but limited to 3.3GiB by kernel option ) runs under Scientific Linux 6.4 with NI hardware VISA works.

0 Kudos
Message 4 of 15
(6,533 Views)

try "dmesg | grep nipal"

dmesg shows you kernel messages. The kernel part for nipal is nipalk. If nipalk doesn't load properly, nipalu won't load.

There could be many reasons why nipalu might fail to load. But the big ones in the past was because nipalk doesn't load properly.

0 Kudos
Message 5 of 15
(6,533 Views)

Hi Irwan,

Thanks for your reply.

I dmesg some error with nipal. it should result in nipal fail

[   14.558320] [nipal] More than 4GB of addressable memory detected.

[   14.558322] [nipal] This configuration is not supported.  Check the release notes for more information.

I notice another thread looks like the same issue with me.

https://decibel.ni.com/content/message/26894

And I see the comment in #10, about adding "memmap=60G$0x100000000" commend,

Does mean that adding that comment in the Grub parameters?

If yes, how should I add this line? I am using Ubuntu12.04, which need to modify /etc/default/grub for grub setting. but I dont where should I add?

Please help if you know this. Thanks a lot!

Also ping @mig-31 @Josh_Cartwright

@JCKey

Best Regards!

0 Kudos
Message 6 of 15
(6,533 Views)

If Ubuntu 12.04 use grub boot loader (not grub 2), you should edit /boot/grub/grub.conf file by adding "memmap=60G$0x100000000" to end of line starts with word kernel.

I have memmap=4096M$0x100000000

Message 7 of 15
(6,533 Views)

Read my reply on that thread you linked to (on 2nd page). try using mem=4096M .. I'm not sure why sometimes mem=* works but sometimes memmap=* is needed.

At this day and age, you're better off installing the 64bit linux distribution. Then we don't have this stupid 4G address limitation, and you can use all your RAM in your system. 64bit linux distribution can run 32bit applications, and it may just involve installing optional 32bit libraries in your system.

The only reason you can't run 64bit linux is if you need to install a kernel driver that doesn't support 64bit. afaik, this is quite rare. Now, we do still have a lot of 32bit apps, but it's fine. 64bit Linux kernel supports running 32bit apps.

Note: we don't support Ubuntu. So I don't know if it'll work. might be worth a try..

Message 8 of 15
(6,527 Views)

I haven't followed this thread too closely, but these comments about 64-bit Linux and 32-bit applications attracted my attention.

About a year ago I attempted to install 32-bit LabVIEW (prior to the release of the 64-bit version) on 64-bit Linux (CentOS).  This turned out to be a nonstarter, precisely because the 32-bit libraries were not part of the Linux installation.  I installed the 32-bit packages as I learned they were missing, but in the end I found it easier to switch to a 32-bit installation of Linux in order to run the 32-bit version of LabVIEW instead of attempting to sort out the entire list of required packages.  (Admittedly, I am not a Linux expert.)  In short, I found that, unlike Windows 64-bit, Linux 64-bit does not out-of-the-box support 32-bit applications.

0 Kudos
Message 9 of 15
(6,527 Views)

Hi Mig,

/boot/grub/grub.conf under ubuntu 12.04 is a file could not modified manuly, below is the comment from the file.

# DO NOT EDIT THIS FILE

#

# It is automatically generated by grub-mkconfig using templates

# from /etc/grub.d and settings from /etc/default/grub

#

So I need to modify the /etc/default/grub or /etc/grub.d.

I try to modify /etc/default/grub to add that command, looks llike nothing work.

Do you have some suggestions, thanks a lot


0 Kudos
Message 10 of 15
(6,533 Views)