NI Linux Real-Time Discussions

Showing results for 
Search instead for 
Did you mean: 

LDD on NI Linux RT

Go to solution

How can we invoke ldd command on NI Linux RT?

ldd doesn't work

/usr/bin/ldd doesn't work

/usr/sbin/ldd doesn't work



We have two ears and one mouth so that we can listen twice as much as we speak.


Antoine Chalons

0 Kudos
Message 1 of 3
Accepted by topic author TiTou

I don't believe we install ldd by default but it is in the repos. You should be able to install it via:
- opkg update

- opkg install ldd


Since Linux RT is meant to be embedded and lightweight, some of the common utilities for development and debugging aren't installed but should generally be in the public repo.

Charlie J.
National Instruments
Message 2 of 3
Accepted by topic author TiTou

Another (more obscure) way to do this without installing ldd is to run the dynamic loader library directly. For example:


admin@boson:~# /lib/ 
You have invoked `', the helper program for shared library executables.
This program usually lives in the file `/lib/', and special directives
in executable files using ELF shared libraries tell the system's program
loader to load the helper program from this file. This helper program loads
the shared libraries needed by the program executable, prepares the program
to run, and runs it. You may invoke this helper program directly from the
command line to load and run an ELF executable file; this is like executing
that file itself, but always uses this helper program from the file you
specified, instead of the helper program file specified in the executable
file you run. This is mostly of use for maintainers to test new versions
of this helper program; chances are you did not intend to run this program.

--list list all dependencies and how they are resolved
--verify verify that given object really is a dynamically linked
object we can handle
--inhibit-cache Do not use /etc/
--library-path PATH use given PATH instead of content of the environment
--inhibit-rpath LIST ignore RUNPATH and RPATH information in object names
--audit LIST use objects named in LIST as auditors
--preload LIST preload objects named in LIST

admin@boson:~# /lib/ --list /usr/local/natinst/labview/lvrt (0x00007fffe2930000) => /usr/local/natinst/lib/ (0x00007f832dad5000) => /usr/local/natinst/lib/ (0x00007f832d8d2000) => /lib/ (0x00007f832d8cd000) => /lib/ (0x00007f832d8c2000) => /usr/lib/ (0x00007f832d6e8000) => /lib/ (0x00007f832d6cf000) => /lib/ (0x00007f832d6ac000) => /lib/ (0x00007f832d4f0000)
/lib64/ => /lib/ (0x00007f832dd13000) => /lib/ (0x00007f832d3ad000)



Message 3 of 3