MacOS、ubuntu安装libssh、libssh2

libssh安装

libssh官方下载链接

bash 复制代码
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/libssh/ ..
make -j6
sudo make install

libssh2安装

libssh2官方下载链接

ubuntu系统安装

bash 复制代码
./configure --prefix=/opt/libssh2
make -j6
sudo make install

MacOS系统安装

首先安装openssl
openssl官方下载链接

bash 复制代码
./config --prefix=/opt/openssl
make -j6
sudo make install

安装libssh2

bash 复制代码
./configure --prefix=/opt/libssh2 --with-libssl-prefix=/opt/openssl
make -j6
sudo make install
相关推荐
未济1 天前
linux 配置环境变量
linux
傲世仙尊1 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
_艾伦 耶格尔.2 天前
进程间通信
linux
Liuqy-052 天前
Linux IO编程——静态库、动态库
linux
彧azz2 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅2 天前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK2 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid
琥珀色糖2 天前
SimlpeHttp
linux·服务器
qeen872 天前
【Linux】操作系统之进程介绍(二)
linux·笔记·学习·进程
Zenova EdgeOS2 天前
Linux ss 工业边缘网络分析实战
linux·python·边缘计算·工业网关