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
相关推荐
databook17 分钟前
Manim实现脉冲闪烁特效
后端·python·动效
程序设计实验室42 分钟前
2025年了,在 Django 之外,Python Web 框架还能怎么选?
python
倔强青铜三2 小时前
苦练Python第46天:文件写入与上下文管理器
人工智能·python·面试
用户2519162427116 小时前
Python之语言特点
python
刘立军6 小时前
使用pyHugeGraph查询HugeGraph图数据
python·graphql
数据智能老司机9 小时前
精通 Python 设计模式——创建型设计模式
python·设计模式·架构
数据智能老司机10 小时前
精通 Python 设计模式——SOLID 原则
python·设计模式·架构
c8i12 小时前
django中的FBV 和 CBV
python·django
c8i12 小时前
python中的闭包和装饰器
python
这里有鱼汤15 小时前
小白必看:QMT里的miniQMT入门教程
后端·python