LD_LIBRARY_PATH

后端 未结 3 1145
死守一世寂寞
死守一世寂寞 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:34

    Simplest way would be to create a shell script.

    Have the shell script export your new LD_LIBRARY_PATH variable then launch your application

    e.g. (where foo is your app)

    #!/bin/sh
    LD_LIBRARY_PATH=some_path:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    foo
    

提交回复
热议问题