ERROR: ld.so: object LD_PRELOAD cannot be preloaded: ignored

后端 未结 5 1855
南方客
南方客 2021-02-05 01:01

I am using ubuntu 12.04. Every time I start my bash terminal and every time when I finish typing a command(and press enter) , I get this message:

ERROR:

5条回答
  •  一整个雨季
    2021-02-05 01:31

    The linker takes some environment variables into account. one is LD_PRELOAD

    from man 8 ld-linux:

    LD_PRELOAD
              A whitespace-separated list of additional,  user-specified,  ELF
              shared  libraries  to  be loaded before all others.  This can be
              used  to  selectively  override  functions   in   other   shared
              libraries.   For  setuid/setgid  ELF binaries, only libraries in
              the standard search directories that are  also  setgid  will  be
              loaded.
    

    Therefore the linker will try to load libraries listed in the LD_PRELOAD variable before others are loaded.

    What could be the case that inside the variable is listed a library that can't be pre-loaded. look inside your .bashrc or .bash_profile environment where the LD_PRELOAD is set and remove that library from the variable.

提交回复
热议问题