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
相关推荐
正在学习前端的---小方同学5 小时前
Harbor部署教程
linux·运维
Sean X6 小时前
Ubuntu24.04安装向日葵
linux·ubuntu
IT 乔峰7 小时前
脚本部署MHA集群
linux·shell
dz小伟7 小时前
execve() 系统调用深度解析:从用户空间到内核的完整加载过程
linux
Mr_Xuhhh8 小时前
博客标题:深入理解Shell:从进程控制到自主实现一个微型Shell
linux·运维·服务器
JoyCheung-8 小时前
Free底层是怎么释放内存的
linux·c语言
旖旎夜光8 小时前
Linux(9)
linux·学习
喵了meme9 小时前
Linux学习日记24:Linux网络编程基础
linux·网络·学习
whlqjn_121110 小时前
linux下使用SHC对Shell脚本进行封装和源码隐藏
linux·centos
weixin_4624462310 小时前
K8s 集群部署基础:Linux 三节点 SSH 互信(免密登录)配置指南
linux·kubernetes·ssh