From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-Visa on ubuntu 18.04

hello,

I try to install ni-visa on ubuntu 18.04 for using it with pyVisa library.

I downloaded http://www.ni.com/download/ni-visa-17.0/6700/en/

But it fail because ubuntu don't have rpm :

 

 sudo ./INSTALL 

*****************************************************************************
  NI-VISA for Linux
     version 17.0.0f1 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        Not found in current path
tar        1.29
Checking dependencies...
glibc      2.27 
Unpacking install files to /tmp/nivisa-17.0.0f1.install...

This document contains the following licenses:
(...)
 y




NI-VISA for Linux version 17.0.0f1
is about to be installed using rpm at /usr/local/natinst

./INSTALL: ligne 1617: -q : commande introuvable

Would you like to continue? [Yn] y

Installing NI-VISA for Linux version 17.0.0f1...
Pre Installation .
Post Installation .
./INSTALL: ligne 422: --showrc : commande introuvable
./INSTALL: ligne 1985: & 1 : erreur de syntaxe : opérande attendu (le symbole erroné est « & 1 »)
Error: Failed to query version information for ni-kal-17.0.0.49152-0+f0.noarch.rpm.

Installer is aborted.

there is a solution ?

maybe using  alien to install rpms ? in this case, wich package I have to install ?

 

thanks

0 Kudos
Message 1 of 6
(10,612 Views)

Hi Cdriko,

 

According to the VISA download page, VISA is only supported for OpenSUSE, Red Hat,CentOS and Scientific Linux. I am not sure about OpenSUSE and Scientific Linux but both Red Hat and CentOS use rpm as their package manager, so if the install script can't find it it will not be able to work.

 

You can try to use this step by step guide to convert the package to ubuntu's format (.deb), but there is no way to be sure it will work correctly.

https://www.rosehosting.com/blog/how-to-install-rpm-packages-on-ubuntu/

 

Thomas



0 Kudos
Message 2 of 6
(10,558 Views)

Same problem here.

It's so strange they cannot support the most popular and easy to use distributions! (Ubuntu, Mint, elementary, etc.)

I've literally spent days on figuring this out and it STILL does not work.

Will now try converting the RPMs to DEBs and install all of them, see what happens.

Message 3 of 6
(10,480 Views)

the real solution is not using NI visa but pyvisaPy : https://pyvisa-py.readthedocs.io/en/latest/

For me it's work very well and it's reaaally lighter to install.

Message 4 of 6
(10,465 Views)

How do you deal with the Linux-GPIB? I cannot install it on ubuntu 18.04.

0 Kudos
Message 5 of 6
(4,697 Views)

Hi Popnut,

 

I would recommend to create a new topic instead of replying to old ones, as your question won't be very visible at the bottom of the thread. I would also recommend to include in the post all the steps you already tried, links you consulted or what kind of keywords you used so that other users can help in a more effective way.



0 Kudos
Message 6 of 6
(4,687 Views)