How to specify non-default shared-library path in GCC Linux? Getting “error while loading shared libraries” when running

后端 未结 2 1567
半阙折子戏
半阙折子戏 2020-11-29 17:20

There is a laptop on which I have no root privilege.

onto the machine I have a library installed using configure --prefix=$HOME/.usr .

after that,

2条回答
  •  情话喂你
    2020-11-29 17:55

    Should it be LIBRARY_PATH instead of LD_LIBRARY_PATH. gcc checks for LIBRARY_PATH which can be seen with -v option

提交回复
热议问题