[LEAP 42.3 KDE 64Bit]LabVIEW 2017 (VISA)

Hello guys,
I’m having some problems with LabVIEW 2017.

I installed the software and it worked fine. I then installed VISA and VIPM in order to develop some VI that was able to communicate with Arduino (i installed labview interface for Arduino) and here the problems came out.

I won’t go into details, basically if I’ve to do something related to VISA, then LabVIEW will crash with this output:


linux-inas:~ # labview64 
libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
Aborted (core dumped)

So i checked out and found out that there are some problems with VISA, probably I didn’t pay attention to the output errors during the installation: I guess the installation didn’t end well.
Here what happens if I try to install VISA (version 17 - http://www.ni.com/download/ni-visa-17.0/6700/en/ ):


linux-inas:/home/phederigo/Downloads/New Folder/NI-VISA-17.0.0 # ./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        4.11.2 can be used with a default installation path
tar        1.27.1
Checking dependencies...
glibc      2.22 
Unpacking install files to /tmp/nivisa-17.0.0f1.install...

<11>Apr 27 15:01:03 phederigo: ERROR: Kernel source in /usr/src/linux does not appear to be
<11>Apr 27 15:01:03 phederigo: ERROR: for the 4.4.76-1-default kernel.
<11>Apr 27 15:01:03 phederigo: ERROR: Ensure that kernel source for the 4.4.76-1-default kernel is installed
<11>Apr 27 15:01:03 phederigo: ERROR: and configured.  Refer to the README file for the product you are
<11>Apr 27 15:01:03 phederigo: ERROR: installing for information about configuring your kernel source.

Installer is aborted.

Seems there are some problems related to the Kernel, but I’m not enough expert to be able to solve it.
Here some info for you:


linux-inas:/home/phederigo/Downloads/New Folder/NI-VISA-17.0.0 # uname -r
4.4.76-1-default


linux-inas:/usr/src # ls                                                                              
linux  linux-4.4.126-48  linux-4.4.126-48-obj  linux-obj  ni-pxipf  packages


linux-inas:/usr/src # zypper install kernel-headers=4.4.76-1
Loading repository data...                                                                            
Reading installed packages...                                                                         
'kernel-headers=4.4.76-1' not found in package names. Trying capabilities.                            
'linux-glibc-devel' providing 'kernel-headers = 4.4.76-1' is already installed.                       
Resolving package dependencies...                                                                     
                                                                                                      
Nothing to do.   


phederigo@linux-inas:~> sudo apt-get install kernel-source
[sudo] password for root: 
Loading repository data...
Reading installed packages...
'kernel-source' is already installed.
No update candidate for 'kernel-source-4.4.126-48.1.noarch'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.

On the README.txt I found:


Q2: During installation I get a message similar to the following one:
    "Kernel source does not appear to be configured for the running kernel.
     Configuration of kernel source is required to continue installation."
    I do have kernel sources installed; is there anything else that needs to
    be done?

A2: This problem has been seen on SUSE LINUX Professional 9.1 Running the 2.6.5
kernel or newer versions of SUSE LINUX Professional. However, it is possible 
that other distributions will require similar steps to resolve this problem. 

    On SUSE LINUX Professional complete the following steps:
    1. Ensure you have installed kernel-source and kernel-syms packages
       corresponding to the version of the currently running kernel. The
       version of the currently running kernel can be determined by 
       issuing the command `uname -r`.
    2. Change the directory to the /usr/src/linux-<version> directory, where
       <version> corresponds to the currently running kernel version.
    3. Run "zcat /boot/symvers-<version>.gz > Module.symvers" as root to prepare
       modversion support.
    4. Run "make cloneconfig" as root to configure the sources for the
       currently running kernel.
    5. Run "make modules_prepare" as root to prepare the headers for
       compilation.
    6. THIS STEP IS STRICTLY OPTIONAL. Completing this step removes the
       warning:
       WARNING: Symbol version dump /usr/src/linux/Module.symvers is missing,
                modules will have CONFIG_MODVERSIONS disabled.
       Run "make modules" as root to compile all modules and generate
       Module.symvers; this step may take 30 minutes or more to complete.
    7. Run the INSTALL script for the NI-VISA software for Linux from this
       directory.

Despite I did that, the problem is still there…

Why do you run the first kernel shipped with Leap?
Post:

zypper se -si kernel

Do you restart your System after your first Update?

Install kernel-default-devel kernel-dev and kernel-syms.
Then type:

cd /usr/src/linux
make clean
make modules_prepare
make modules
zypper up

and Restart might be helpfull

Agreed :wink:

Sorry guys, I was not able to use the computer just until today. I don’t know why i use the first kernel, I’m not expert, I thought that was not a problem. (I don’t think I ever did an update since the installation, I’ve been a Windows user for a long time, Windows taught me that often updates means troublesrotfl!)
So here is the output:

linux-inas:/usr/src/linux # zypper se -si kernel
Retrieving repository ‘openSUSE-Leap-42.3-Update’ metadata …[done]
Building repository ‘openSUSE-Leap-42.3-Update’ cache …[done]
Loading repository data…
Reading installed packages…

S | Name | Type | Version | Arch | Repository
—±---------------------±--------±-------------±-------±-------------------------
i+ | kernel-default | package | 4.4.76-1.1 | x86_64 | openSUSE-Leap-42.3-Oss
i+ | kernel-default | package | 4.4.76-1.1 | x86_64 | openSUSE-Leap-42.3-0
i | kernel-default-devel | package | 4.4.126-48.2 | x86_64 | openSUSE-Leap-42.3-Update
i | kernel-devel | package | 4.4.126-48.1 | noarch | openSUSE-Leap-42.3-Update
i | kernel-firmware | package | 20170530-9.1 | noarch | openSUSE-Leap-42.3-Oss
i | kernel-firmware | package | 20170530-9.1 | noarch | openSUSE-Leap-42.3-0
i | kernel-macros | package | 4.4.126-48.1 | noarch | openSUSE-Leap-42.3-Update
i+ | kernel-source | package | 4.4.126-48.1 | noarch | openSUSE-Leap-42.3-Update
i+ | kernel-syms | package | 4.4.126-48.1 | x86_64 | openSUSE-Leap-42.3-Update

Hello, thank you for the help.
Seems there was no need to install them

linux-inas:/usr/src/linux # apt-get install kernel-default-devel
Loading repository data…
Reading installed packages…
‘kernel-default-devel’ is already installed.
No update candidate for ‘kernel-default-devel-4.4.126-48.2.x86_64’. The highest available version is already installed.
Resolving package dependencies…

Nothing to do.
linux-inas:/usr/src/linux # apt-get install kernel-dev
Loading repository data…
Reading installed packages…
‘kernel-devel’ is already installed.
No update candidate for ‘kernel-devel-4.4.126-48.1.noarch’. The highest available version is already installed.
Resolving package dependencies…

Nothing to do.
linux-inas:/usr/src/linux # apt-get install kernel-syms
Loading repository data…
Reading installed packages…
‘kernel-syms’ is already installed.
No update candidate for ‘kernel-syms-4.4.126-48.1.x86_64’. The highest available version is already installed.
Resolving package dependencies…

Nothing to do.

make modules is taking a lot (i think i’ve used that command last time, when i was following the README guide, it took hours) I will let you know what will happen when it will finish

Done, nothing changed, i get the same errors::‘(:’(:cry:

inux-inas:/home/phederigo/Downloads/NewFolder/NI-VISA-17.0.0 # ./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 4.11.2 can be used with a default installation path
tar 1.27.1
Checking dependencies…
glibc 2.22
Unpacking install files to /tmp/nivisa-17.0.0f1.install…

<11>May 3 15:16:14 phederigo: ERROR: Kernel source in /lib/modules/4.4.126-48-default/source does not appear to be
<11>May 3 15:16:14 phederigo: ERROR: for the 4.4.126-48-default kernel.
<11>May 3 15:16:14 phederigo: ERROR: Ensure that kernel source for the 4.4.126-48-default kernel is installed
<11>May 3 15:16:14 phederigo: ERROR: and configured. Refer to the README file for the product you are
<11>May 3 15:16:14 phederigo: ERROR: installing for information about configuring your kernel source.

Installer is aborted.

OK, seems I solved the problem about the kernel: this is what I did:

Open YaST2 Software Management -> **View **-> Patterns
In Development section I selected and installed: Base Development, C/C++ Development, Linux Kernel Development and also KDE Development and KDE Frameworks Development (I think you can skip KDE)

I then followed the README:

1.  The version of the currently running kernel can be determined by 
   issuing the command `uname -r`.
2. Change the directory to the /usr/src/linux-&lt;version&gt; directory, where
   &lt;version&gt; corresponds to the currently running kernel version.
3. Run "zcat /boot/symvers-&lt;version&gt;.gz &gt; Module.symvers" as root to prepare
   modversion support.
4. Run "make cloneconfig" as root to configure the sources for the
   currently running kernel.
5. Run "make modules_prepare" as root to prepare the headers for
   compilation.
6. **Run the INSTALL script for the NI-VISA software for Linux from this
   directory.**

The installation didn’t give Errors about kernel stuffs but it rather said:

cat: /etc/natinst/linux/linux.dir: no such file or directory.

So now I still have problems with VISA:


linux-inas:~ # visaconf 
 libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
Aborted (core dumped)

I’ve already used UpdateNIDrivers, I guess it’s better for me to ask help about this on NI forum