alpine镜像编译libmodbus - Sat, Oct 12, 2024
alpine镜像编译libmodbus
命令
docker run --rm --platform linux/arm/v7 -it -v $PWD:/mnt alpine sh
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
apk update && apk add linux-headers libtool autoconf automake git bash build-base
cd /mnt/ && git config --global --add safe.directory /mnt && git clean -d -x -f
./autogen.sh && mkdir build && ./configure --prefix=/mnt/build --enable-static && make install