copy lib and run exe

作者:iohannes 发布时间: 2025-03-14 阅读量:12

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