Deploying C app that uses the PCRE library

前端 未结 3 818
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 09:32

I wrote a C app that uses the PCRE library. Everything works on my own computer. However, when I copy the binary over to another computer and run it, it gives the following erro

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-21 10:08

    You should be able to copy it and then set the envvar LD_LIBRARY_PATH to the folder where it exists, or even create a shell script that sets this envvar then launches your program as follows

    LD_LIBRARY_PATH=. ./your_program
    

    Check the Program Library How To

提交回复
热议问题