Halo
发布于 2023-02-27 / 74 阅读 / 0 评论 / 0 点赞

copy lib and run exe

copy all lib

ldd exe_file | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /dest_dir

export lib file

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/dest_dir

run exe file

./exe_file

评论