LabVIEW Shared Library Fails to Load on Linux RT: liblvrt.so Not Found

Updated Oct 14, 2025

Reported In

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)

Issue Details

When I try to call a shared library built with LabVIEW from my C code on a Linux Real-Time (RT) system, I get an error like:

ERROR: Can't load library liblvrt.so.XX.x

Reason: liblvrt.so.XX.x: cannot open shared object file: No such file or directory 

Resolution:

- Ensure liblvrt.so.XX.x is installed in your LD_LIBRARY_PATH or in /usr/lib64 

- Download LabVIEW Runtime Engine from: http://www.ni.com/rteFinder?dest=lvrte&platform=Linux&lang=en

I’ve already installed the LabVIEW Runtime Engine, but the system still can’t find the required liblvrt.so file. It seems like the runtime library isn’t in the expected location, and I’m not sure how to fix it.

Solution

This issue is typically caused by either a missing or improperly installed LabVIEW Runtime Engine, or the system not being able to locate the runtime library in the expected path. After trying each of the possible solutions provided below, re-run your application that calls the LabVIEW shared library to check if the issue was fixed.

 

Install or reinstall the LabVIEW Runtime Engine

 

If the error persists, create a symbolic link to the runtime library

ln -s /usr/local/natinst/labview/liblvrt.so /usr/lib64/liblvrt.so.XX.x

 

  • Replace XX.x with the version number your application is expecting (e.g., 23.0).
  • Confirm the symbolic link was created:

ls -l /usr/lib64/liblvrt.so.XX.x