# 称最新版的openssl
安装依赖东东
yum install -y libtool doxygen asciidoc perl-IPC-Cmd
下载解压
cd /chz/install/openssl
wget https://www.openssl.org/source/openssl-3.3.1.tar.gz
tar zxvf openssl-3.3.1.tar.gz
编译安装
cd /chz/install/openssl/openssl-3.3.1
./config
make -j4
make install
ldconfig /usr/local/lib64/
修改配置
vim /etc/profile
<<<< 添加以下内容
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH
>>>>
# 接着安装libcoap
下载解压
cd /chz/install/coap
wget https://github.com/obgm/libcoap/archive/refs/tags/v4.3.4.tar.gz
tar zxvf v4.3.4.tar.gz
编译安装
cd /chz/install/coap/libcoap-4.3.4
./autogen.sh
./configure
make -j4
make install
试运行
coap-client