LD_LIBRARY_PATH

后端 未结 3 1130
死守一世寂寞
死守一世寂寞 2021-01-14 08:04

Can I set LD_LIBRARY_PATH for an individual application? I am looking into system call failure, so is there any way I can set set the correct path using the LD_LIBRARY_PATH

3条回答
  •  没有蜡笔的小新
    2021-01-14 08:20

    As simple as:

    LD_LIBRARY_PATH=new_path:$LD_LIBRARY_PATH foo
    

    which works in bash. I think it works in all bourne shell derivatives, but I can't guarantee it.

    Of course, with this approach, you have to type the path every time. To do it repeatedly, prefer Glen's approach.

提交回复
热议问题