企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ### Centos7安装 github ``` $ git clone https://github.com/shadowsocks/shadowsocks-rust.git ``` cargo安装: ``` $ cargo install shadowsocks-rust ``` ### 编译 执行命令: ``` $ cargo check ``` 报错 error: failed to run custom build command for `openssl-sys v0.9.48` 执行命令: ``` $ yum install -y openssl-devel.x86_64 ``` 报错 error: failed to run custom build command for `libsodium-ffi v0.1.17` 这是因为centos7不支持Chacha20加密算法,执行命令 : ``` $ yum install -y m2crypto make $ wget -N --no-check-certificate https://github.com/jedisct1/libsodium/releases/download/1.0.8/libsodium-1.0.8.tar.gz $ tar zfvx libsodium-1.0.8.tar.gz $ cd libsodium-1.0.8 $ ./configure $ make && make install $ echo "include ld.so.conf.d/*.conf" >> /etc/ld.so.conf $ echo "/lib" >> /etc/ld.so.conf $ echo "/usr/lib64" >> /etc/ld.so.conf $ echo "/usr/local/lib" >> /etc/ld.so.conf $ ldconfig ```