Ld library path where is it set




















If used right, it can be very useful, but very often — not to say, most of the time — people apply it in the wrong way, and that is were they are calling for trouble. Yes, it is useful — if you apply it in the way it was invented for, like the three cases above. However, very often it is used as a crutch to fix a problem that could have been avoided by other means see below.

There is the ldd command, that shows you which libraries are needed by a dynamically linked executable, e. To get an overview of libraries loaded at runtime, you can use the pldd command:. As you can see, there are two more.

Note: pldd is originally a Solaris command, that usually is not available on Linux. Why did you edit out most of your question while it was providing some useful context to understand your issue? I rolled it back. Add a comment.

Active Oldest Votes. Improve this answer. Celada Celada Ubuntu, Fedora, CentOS, etc? See here, for eg: stackoverflow. It doesn't concern finding libraries for the executable being built. That's what -L does. That's definitely what your problem is though.

Then run sudo ldconfig It worked. PS: OS Ubuntu What could be the issue? All users have the environment variable added. Neeku 3, 8 8 gold badges 32 32 silver badges 42 42 bronze badges. Johnnyb Johnnyb 31 1 1 bronze badge. Iharob Al Asimi Methusael Murmu Methusael Murmu 73 6 6 bronze badges. Awesome answer. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta.

Now live: A fully responsive profile. Linked See more linked questions. Related Hot Network Questions. Question feed.

The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Linked 1. Related 2. Hot Network Questions. Question feed. Ask Ubuntu works best with JavaScript enabled.



0コメント

  • 1000 / 1000