Results 1 to 9 of 9

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

  1. #1

    Default [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:
    Code:
    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/ ):
    Code:
    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:

    Code:
    linux-inas:/home/phederigo/Downloads/New Folder/NI-VISA-17.0.0 # uname -r
    4.4.76-1-default
    Code:
    linux-inas:/usr/src # ls                                                                              
    linux  linux-4.4.126-48  linux-4.4.126-48-obj  linux-obj  ni-pxipf  packages
    Code:
    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.
    Code:
    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:
    Code:
    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...

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    6,725

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

    Why do you run the first kernel shipped with Leap?
    Post:
    Code:
    zypper se -si kernel
    Do you restart your System after your first Update?

  3. #3
    Join Date
    Jul 2008
    Location
    Toronto, Canada
    Posts
    1,255

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

    Install kernel-default-devel kernel-dev and kernel-syms.
    Then type:
    Code:
    cd /usr/src/linux
    Code:
    make clean
    Code:
    make modules_prepare
    Code:
    make modules
    My Linux Box
    OS:
    openSUSE 52.2 - Plasma 5.18.9
    OS:
    Tumbleweed Plasma 5.22
    ASUS P5Q | Intel Quad 6600 @3.02 GHz | 8GB G.SKILL RAM | Nvidia GeForce 750 Ti

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    6,725

    Default AW: Re: [LEAP 42.3 KDE 64Bit]LabVIEW 2017 (VISA)

    Quote Originally Posted by Romanator View Post
    Install kernel-default-devel kernel-dev and kernel-syms.
    Then type:
    Code:
    cd /usr/src/linux
    Code:
    make clean
    Code:
    make modules_prepare
    Code:
    make modules
    Code:
    zypper up
    and Restart might be helpfull

  5. #5
    Join Date
    Jul 2008
    Location
    Toronto, Canada
    Posts
    1,255

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

    Agreed ;-)
    My Linux Box
    OS:
    openSUSE 52.2 - Plasma 5.18.9
    OS:
    Tumbleweed Plasma 5.22
    ASUS P5Q | Intel Quad 6600 @3.02 GHz | 8GB G.SKILL RAM | Nvidia GeForce 750 Ti

  6. #6

    Default Re: AW: [LEAP 42.3 KDE 64Bit]LabVIEW 2017 (VISA)

    Quote Originally Posted by Sauerland View Post
    Why do you run the first kernel shipped with Leap?
    Post:
    Code:
    zypper se -si kernel
    Do you restart your System after your first Update?
    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 troubles)
    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

  7. #7

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

    Quote Originally Posted by Romanator View Post
    Install kernel-default-devel kernel-dev and kernel-syms.
    Then type:
    Code:
    cd /usr/src/linux
    Code:
    make clean
    Code:
    make modules_prepare
    Code:
    make modules
    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

  8. #8

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

    Done, nothing changed, i get the same errors:
    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.

  9. #9

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

    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-<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. 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:
    Code:
    cat: /etc/natinst/linux/linux.dir: no such file or directory.
    So now I still have problems with VISA:
    Code:
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •