Skip to content
copy lib and run exe
2025年3月13日 root

copy all lib

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

export lib file

shell
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/dest_dir

run exe file

shell
./exe_file

Last updated: