Questions tagged [ldd]

ldd is a unix command-line tool to print shared library dependencies for an executable or shared library.

If a program is dynamically linked, i.e. uses shared libraries, the program requires some number of external libraries in order to run. ldd is a tool to list the required libraries and shows if those libraries can be found in the current configuration.

Questions about using and understanding ldd output should use this tag.

From a unix command-line running

man ldd

will provide more information.

254 questions
0
votes
2 answers

How to programmatically check whether a library dependent program can run in a Linux system?

I am having a program(binary) which depends upon libraries such as pthread, sqlite3,libcrypto and libcurl.I want to run this program in multiple user PCs.How to programmatically check whether the dependencies are met, before installing the…
BusyTraveller
  • 183
  • 3
  • 14
0
votes
0 answers

centos7 xxx.so lib lib64 rstudio-server

I'm installed the rstudio-server with rpm in centos7,but cant not start. Use ldd to seen some xx.so can not found , but that xxx.so already in /usr/lib64. I was add the path to ldconfig,add path to LD_LIBRARY_PATH,but not useful So,what can i do to…
Christ
  • 1
  • 1
0
votes
1 answer

Moving application to Linux server from local Linux machine

I need to run C++ application that I build on my local developer Linux machine(Ubuntu 14.04) under VirtualBox on Linux server(Ubuntu 12), the problem that application have lots of dependencies and I don't have sudo on that server, so I can't do…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
0
votes
1 answer

How correctly to link program against library

I run ./myprogram and it gives me a warning: Warning: Your program was compiled with SimGrid version 3.13.90, and then linked against SimGrid 3.13.0. Proceeding anyway. Tryldd myprogram and it gives following: libsimgrid.so.3.13.90 =>…
Kenenbek Arzymatov
  • 8,439
  • 19
  • 58
  • 109
0
votes
1 answer

Adding a library file into a binary file

I have compiled a source code and included proper library files in the LDFLAGS. However, as I want to run the binary, it says a specific libX.a is missing. If I add the library's path to the LD_LIBRARY_PATH, everything will be OK. Is there any way…
mahmood
  • 23,197
  • 49
  • 147
  • 242
0
votes
0 answers

How come ldd reference appears twice for openssl binary?

For some reason reference to libcrypto appears twice while executing "ldd". Why? does the binary selects the second instance of libcrypto? root# ldd openssl | grep libcrypto libcrypto.so.1.0.0 => /server/lib/libcrypto.so.1.0.0 …
15412s
  • 3,298
  • 5
  • 28
  • 38
0
votes
1 answer

Why does setting LD_LIBRARY_PATH change the shared library dependencies?

I have a simple hello_world.cpp program. I compiled it using g++4.4.7 on a CentOS 6.6 system. When I look at ldd a.out: linux-vdso.so.1 => (0x00007fffbd79e000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002ab6f6819000) libm.so.6 =>…
irritable_phd_syndrome
  • 4,631
  • 3
  • 32
  • 60
0
votes
2 answers

cmake: how to keep path to libraries during installation

I have some executable which depends on config files which relative path are setup in the source. The executable links against a library, which is created in the same project. What I am hoping to achieve, is having the executable working out of the…
Vince
  • 3,979
  • 10
  • 41
  • 69
0
votes
1 answer

How does gdb backtrace knows which library each function is taken from?

I've written a simple program that all it does is call a function called meller1, which calls to meller2, and so on until some function calls free and crashes. When running gdb backtrace on this program with the coredump file, I receive: gdb bt My…
Adiemus
  • 11
  • 2
0
votes
1 answer

ldd not finding shared object (.so) for xerces

I am trying to run a sample executable provided with Xalan C++ library, which requires a the Xerces C library. But I am not able to properly link the Xerces shared object file. mike@ubuntu:~/Xalan-C_1_9_0-redhat_80-gcc_32/bin$ ldd SimpleXPathAPI …
Mike S
  • 11,329
  • 6
  • 41
  • 76
0
votes
1 answer

c++ shared object dependencies

after .so compilation the ldd command returns 3 unknown dependencies. libboost_regex-gcc41-mt-1_35.so.1.35.0 => not found libsqlapi.so => not found libsqlapiu.so => not found Although they are specified in makefile and present at…
R_N
  • 111
  • 9
0
votes
2 answers

how to link shared library from non existing(in compile time) folder

i'm trying to link shared library to another shared library(protobuf) with -rpath option, the problem is that the lib is in another direcory in compile time than in runtime, and -rpath option requires an existing in compile time path. (so i get an…
0
votes
1 answer

Common function of a dynamic library shared by several executables

I have an issue I don't know how to solve. I have ever written a program (Python script) which returns a list of dynamic libraries with all the executables using them. (My script uses the ldd utility). Now, I'd like to do a program which would…
JohnCage
  • 37
  • 5
0
votes
1 answer

Semaphore will not wake up in the context of Ioctl

I have a device driver I am working on. It works this way: 1. User app sends ioctl cmd 0x01 to driver that puts it to sleep. 2. User app sends another ioctl cmd 0x02 to driver that wakes it up. I am doing this because my hardware is not ready, so I…
0
votes
1 answer

'ldd' reports 'not found' when looking for shared library

I have two shared libraries, 'engine.so' and 'cengine.so'. 'cengine.so' has a dependency to 'engine.so', which is confirmed by the 'ldd'-command: http://puu.sh/gj0ZU/f4530c3c28.jpg However it states that it couldn't find the library, even though…
Silverlan
  • 2,783
  • 3
  • 31
  • 66
1 2 3
16
17