Libstdc++ Library Is Missing While Trying to Install NI Drivers on Linux

Updated Dec 23, 2023

Reported In

Driver

  • NI-VISA
  • NI-DAQmx
  • NI-488.2

Operating System

  • Linux

Issue Details

I am trying to install a NI driver on my Linux computer (CentOS/RedHat/SUSE), but every time I face an error message saying that libstdc++.so.6 dependency is missing:

Pre Installation . 
Post Installation . 
Pre Installation ................................... 
error: Failed dependencies: libstdc++.so.6 is needed by ni-pal-16.0.0.49153-0+f1.i386 
libstdc++.so.6 is needed by niorbki-14.1.1-f0.x86_64 
Error installing NI-VISA for Linux 16.0.0f0. 

Installer is aborted


Or: 

Installing NI-488.2 version 17.0.0f0...
Pre Installation .
Post Installation .
Pre Installation .................................
Failed dependencies:
libstdc++.so.6 needed by ni-pal-17.0.0.49152-0+f0.i386
Error installing NI-488.2 17.0.0f0.

Installer is aborted.


How can I solve this issue? 

Solution

This document only applies to versions of NI software released prior to NI Linux Device Drivers. For new designs, NI recommends using NI Linux Device Drivers to take advantage of repository-based installation and more frequent updates to support.

libstdc++.so.6 is a standard GNU C++ library that can be found through yum command line.

In order to find which package contain libstdc++.so.6, you can enter the following command
>> yum provides libstdc++.so.6
Then, chose one of the suggested packages.

If the package is already installed, then try to reinstall the package through the following command :
>> yum reinstall libstdc++.so.6