Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

How to install Ni-visa on Ubuntu 12.04

Hi everybody

I try to install ni-visa 5.3.0 on my Computer with Ubuntu 12.04,   kernel : 3.2.0-39-generic, x86_64 structure und becomme this error:

* The version of gcc in the path does not match the version of gcc used to compile the currently running

* kernel. This can cause unpredictable behavior in kernel drivers and should be fixed.

* gcc version: gcc-Version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

* kernel compiled with: 4.6.3

Can Anyone help me to fix it ?

Thank you very much

Best regards

0 Kudos
Message 1 of 27
(22,935 Views)

Unpack the ISO file into a directory. Open INSTALL in a text editor. Search for these three lines:

#

# Source the nikal installerUtility for preinstallation checks

#

Insert the following code block into INSTALL  >BEFORE< the above three lines:

#

# Apply required patches

#

pushd $kTmpInstallSrcPath

for name in $CDPATH/patches/*.patch; do

  patch -p1 < $name || echo "Patch $name failed"

done

popd

In the same directory make a subdir "patches" and copy the following file into it, e.g. as 001-gcc-nonfatal.patch

diff -ruN nivisa-5.2.0f0.install.orig/bin/installerUtility.sh nivisa-5.2.0f0.install/bin/installerUtility.sh

--- nivisa-5.2.0f0.install.orig/bin/installerUtility.sh 2013-05-19 06:22:03.632787577 +0200

+++ nivisa-5.2.0f0.install/bin/installerUtility.sh      2013-05-19 06:22:56.317783706 +0200

@@ -354,7 +354,6 @@

             echo "* gcc version: $currentGCCVersion                                                          *"

             echo "* kernel compiled with: $kernelGCCVersion                                                 *"

             echo "******************************** ERROR ****************************************"

-            return $statusFail

          else

             echo "******************************** WARNING **************************************"

             echo "* The version of gcc in the path does not match the version of gcc used to    *"

Then run INSTALL. It should apply the patch during installation and ignore the (seemingly) different GCC.

(The version comparison is badly broken, it also fails on Gentoo.)

Message 2 of 27
(10,202 Views)

Is there any solution for Ubuntu 12.04 installation. I tried the steps given in AKHuettel comment and that didn't work for me.

It will be great if you could give a pointer/steps to install NI VISA 5.4/5.3 on Ubuntu 12.04.

0 Kudos
Message 3 of 27
(10,202 Views)

So what went wrong? Error messages? Details? Sorry, if you dont tell us what happens we can't help you.

0 Kudos
Message 4 of 27
(10,202 Views)

I notice your patch references nivisa-5.2.0f0 for the path to the installer utility. Will this work for version 5.4 or does it need to be edited to match the version being installed?

0 Kudos
Message 5 of 27
(10,202 Views)

tkgamble schrieb:

I notice your patch references nivisa-5.2.0f0 for the path to the installer utility. Will this work for version 5.4 or does it need to be edited to match the version being installed?

I don't know... but NI rarely changes much with the installer scripts, so chances are good it will work. Worst case, the patch program outputs an error message and the "gcc version mismatch" error as in the top post just stays unchanged. Give it a try!

0 Kudos
Message 6 of 27
(10,202 Views)

I tried the suggestions you made.  It seems to get past the version number with no issues, but the install fails with the following output:

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%]
        file /usr/local/natinst conflicts between attempted installs of nispyi-2.8.1-f0.i386 and nipalki-2.9.1-f0.x86_64
        file /usr/local/natinst conflicts between attempted installs of nipalerri-2.9.1-f0.i386 and nispyi-2.8.1-f0.i386
        file /usr/local/natinst conflicts between attempted installs of nipxipfki-1.5.1-f0.x86_64 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/bin conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc/errors conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc/errors/ChineseS conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc/errors/English conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc/errors/French conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc/errors/German conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc/errors/Japanese conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
        file /usr/local/natinst/.nicore/etc/errors/Korean conflicts between attempted installs of niapalerri-2.2.1-f0.i386 and nimxdfi-3.0.0-f0.i386
Error installing NI-VISA for Linux 5.4.0f0.

Installer is aborted.

I'm trying to install on ubuntu 13.04 x86_64.

0 Kudos
Message 7 of 27
(10,202 Views)

Don't worry, we have a hack for this too...

https://decibel.ni.com/content/message/52494#52494

(scroll down to comment number 12, the last one on the page)

0 Kudos
Message 8 of 27
(10,202 Views)

Hi, I have a similar installation problem. I tried this with NI-VISA 4.4.0 5.0.0 5.4.0 and 5.4.1.

When I run ./INSTALL after accepting licence agreement, I see the following.

NI-VISA for Linux version 5.4.1f0

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

./INSTALL: line 1515: -q: command not found

Would you like to continue? [Yn] y

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

Pre Installation .

Post Installation .

./INSTALL: line 419: --showrc: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

./INSTALL: line 667: -qp: command not found

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

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

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO

THE PATENTS.txt FILE ON /media/iso AND/OR

www.ni.com/patents

NI-VISA for Linux Installation completed successfully.

Then, I have only one text file on /usr/local/natinst/share/etc  usr/local/natinst doesnt include anything else.

What is the problem here? Can I get any help on this?

I use Ubuntu 12.04 with 3.2.0-60-generic-pae

Message 9 of 27
(10,201 Views)

You do not have rpm installed.

0 Kudos
Message 10 of 27
(10,201 Views)