| | |
| | | #!/bin/bash |
| | | |
| | | #+-------------------------------------------------------------------------------------------- |
| | | #|Description: This shell script used download and compile MQTT C library mosquitto for ARM |
| | | #|Description: This shell script used download and compile libgpiod for RaspberryPi |
| | | #| Author: GuoWenxue <guowenxue@gmail.com> |
| | | #| ChangeLog: |
| | | #| 1, Initialize 1.0.0 on 2011.04.12 |
| | | #| 1, Initialize 1.0.0 on 2021.04.12 |
| | | #+-------------------------------------------------------------------------------------------- |
| | | |
| | | |
| | | PREFIX_PATH=/usr |
| | | LYFTP_SRC=ftp://master.iot-yun.club/src/ |
| | | |
| | | function msg_banner() |
| | |
| | | tar -xzf ${SRC_NAME}.${PACK_SUFIX} |
| | | cd ${SRC_NAME} |
| | | |
| | | ./autogen.sh && ./configure --enable-tools |
| | | ./autogen.sh && sudo ./configure --prefix=${PREFIX_PATH} --enable-tools |
| | | |
| | | make && make install |
| | | make && sudo make install |
| | | |
| | | cd - |
| | | } |