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
相关推荐
涛ing2 小时前
32. C 语言 安全函数( _s 尾缀)
linux·c语言·c++·vscode·算法·安全·vim
__雨夜星辰__2 小时前
Linux 学习笔记__Day2
linux·服务器·笔记·学习·centos 7
大耳朵土土垚2 小时前
【Linux】日志设计模式与实现
linux·运维·设计模式
bohu835 小时前
亚博microros小车-原生ubuntu支持系列:16 机器人状态估计
ubuntu·机器人·imu·localization·microros·imu_tools
深度Linux8 小时前
Linux网络编程中的零拷贝:提升性能的秘密武器
linux·linux内核·零拷贝技术
chian-ocean11 小时前
从理论到实践:Linux 进程替换与 exec 系列函数
linux·运维·服务器
拎得清n11 小时前
UDP编程
linux
敖行客 Allthinker12 小时前
从 UTC 日期时间字符串获取 Unix 时间戳:C 和 C++ 中的挑战与解决方案
linux·运维·服务器·c++
夏尔Gaesar13 小时前
Vim安装与配置教程(解决软件包Vim没有安装可候选)
linux·编辑器·vim
hunter20620613 小时前
如何监控ubuntu系统某个程序的运行状态,如果程序出现异常,对其自动重启。
linux·chrome·ubuntu