MacBook安装手动openssl@3

MacBook安装 openssl@3

安装rabbitmq, 报错

复制代码
/usr/local/opt/openssl@3/lib/libssl.3.dylib

通过 brew 安装 openssl@3,提示系统版本过低,无法安装,决定直接进行手动安装

1、下载openssl

openssl下载地址

brew 安装时看一下下载版本,我是直接下载的最新版本

2、解压

shell 复制代码
tar -zxvf openssl-3.4.0.tar.gz
cd openssl-3.4.0

3、配置 openssl

方法一(推荐):
shell 复制代码
perl ./Configure --prefix=/usr/local/Cellar/openssl@3/3.4.0 --openssldir=/usr/local/openssl@3 --libdir=lib no-ssl3 no-ssl3-method no-zlib darwin64-x86_64-cc enable-ec_nistp_64_gcc_128
方法二:

因为现在macbook目录权限问题可能会导致失败

shell 复制代码
./config enable-fips --prefix=/usr/local --openssldir=/usr/local/openssl

4、编译安装

1、编译
shell 复制代码
make
2、测试(非必要)
shell 复制代码
make test
3、安装

进行超管身份进行安装,解决没有权限的问题

shell 复制代码
sudo make install MANDIR=/usr/local/Cellar/openssl@3/3.3.0/share/man MANSUFFIX=ssl

查看安装是否完成

shell 复制代码
openssl version

如果查看不是当前安装的版本,建议进行环境变量的配置

查看openssl 版本

shell 复制代码
which openssl
4、brew进行管理

可以使用brew链接 openssl,可通过brew进行管理手动安装

shell 复制代码
brew link openssl@3
相关推荐
geovindu6 分钟前
python: Command Pattern
开发语言·python·命令模式
曲幽24 分钟前
FastAPI实战:WebSocket长连接保持与心跳机制,从入门到填坑
javascript·python·websocket·keep-alive·fastapi·heartbeat·connection
好学且牛逼的马2 小时前
从“混沌初开”到“有序统一”:Java集合框架发展历程与核心知识点详解
前端·数据库·python
a1117762 小时前
快速制作 虚拟形象项目 MotionPNGTuber
python·live2d
一切尽在,你来2 小时前
AI大模型应用开发前置知识:Python迭代器和生成器深入详解
python·langchain·ai编程
小雨中_2 小时前
2.7 强化学习分类
人工智能·python·深度学习·机器学习·分类·数据挖掘
摩拜芯城IC3 小时前
ATSHA204A‑STUCZ CryptoAuthentication 安全认证芯片IC
python·安全
小雨中_3 小时前
2.4 贝尔曼方程与蒙特卡洛方法
人工智能·python·深度学习·机器学习·自然语言处理
MediaTea4 小时前
Python:可迭代对象(对象语义角色)
开发语言·python
skywalk81635 小时前
Diffusers 库介绍,它支持LTX-2模型
python