Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've done the following command to set the path for LD_PRELOAD. But it's the wrong path.

export LD_PRELOAD=/home/

Does anyone know what is the default path for LD_PRELOAD on Ubuntu 12.04? What is the exact command to reset the export?

share|improve this question
up vote 5 down vote accepted

There is no default LD_PRELOAD variable, or, in other words, it is empty. You can revert to that state by typing


LD_PRELOAD is not to specify the libraries found in the regular case; it is just here to specify an order of library loading that is different from the regular one (determined by ldconfig(8)).

share|improve this answer
after i've entered unset LD_PRELOAD, i'm still getting the Platform/ERROR: object '/' from LD_PRELOAD cannot be preloaded: ignored – alvas Sep 18 '12 at 8:38
What are you trying to run? My bet would be that you are running a script that tries to set up its own LD_PRELOAD and fails. – January Sep 18 '12 at 8:46
i'm running cmake that requires the boost library... – alvas Sep 18 '12 at 8:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.