Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
lissome
V2EX  ›  Linux

求助:如何批量复制可执行程序需要的动态库文件

  •  
  •   lissome · May 9, 2017 · 2820 views
    This topic created in 3364 days ago, the information mentioned may be changed or developed.

    在 linux 下编了一个程序,需要拷给别人用。如何拷贝程序需要的所有库文件?

    我现在知道的办法是先 ldd 出来所有的动态库文件,然后一个个的手动拷贝出来。 然后在到目标机器上 一个个的 ln 创建软链接,然后在运行前 export LD_LIBRARY_PATH=***

    这样太麻烦,请问正确的姿势是什么?

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2636 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 01:22 · PVG 09:22 · LAX 18:22 · JFK 21:22
    ♥ Do have faith in what you're doing.