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
相关推荐
yaoh.wang1 天前
力扣(LeetCode) 13: 罗马数字转整数 - 解法思路
python·程序人生·算法·leetcode·面试·职场和发展·跳槽
小鸡吃米…1 天前
Python PyQt6教程七-控件
数据库·python
1916zz1 天前
Extreme programing 方利喆 _ 江贤晟
python
长安牧笛1 天前
智能鞋柜—脚气终结者,内置温湿度传感器和紫外线灯,晚上回家,把鞋放进去,自动检测湿度,湿度超标就启动烘干+紫外线杀菌,第二天穿鞋干燥无异味。
python
weixin_457760001 天前
PIL库将图片位深度是1、8、32统一转换为24的方法
python
Lucky高1 天前
Pandas库入门
python·pandas
小鸡吃米…1 天前
Python PyQt6教程三-菜单与工具栏
开发语言·python
aini_lovee1 天前
寻找 MAC 协议的 MATLAB 仿真
开发语言·macos·matlab
Jack电子实验室1 天前
【杭电HDU】校园网(DeepL/Srun)自动登录教程
python·嵌入式硬件·计算机网络·自动化
木头左1 天前
二值化近似计算在量化交易策略中降低遗忘门运算复杂度
python