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

后端 未结 5 1851
南方客
南方客 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:38

    Thanks for the responses. I think I've solved the problem just now.

    Since LD_PRELOAD is for setting some library proloaded, I check the library that ld preloads with LD_PRELOAD, one of which is "liblunar-calendar-preload.so", that is not existing in the path "/usr/lib/liblunar-calendar-preload.so", but I find a similar library "liblunar-calendar-preload-2.0.so", which is a difference version of the former one.

    Then I guess maybe liblunar-calendar-preload.so was updated to a 2.0 version when the system updated, leaving LD_PRELOAD remain to be "/usr/lib/liblunar-calendar-preload.so". Thus the preload library name was not updated to the newest version.

    To avoid changing environment variable, I create a symbolic link under the path "/usr/lib"

    sudo ln -s liblunar-calendar-preload-2.0.so liblunar-calendar-preload.so
    

    Then I restart bash, the error is gone.

提交回复
热议问题