技术栈

mac m1 pcre.h 找不到

SeaDhdhdhdhdh2024-05-25 18:28

安装suricata报错:

configure: error: pcre.h not found ...

解决:

brew install pcre

找到这个文件的地址

brew list pcre | grep 'pcre.h$'

/opt/homebrew/Cellar/pcre/8.45/include/pcre.h

程序搜索的地址

cpp -v

/Library/Developer/CommandLineTools/usr/include # 这个地址

brew 安装地址和程序搜索地址不一样,所以需要软链过去

sudo ln -s /opt/homebrew/Cellar/pcre/8.45/include/pcre.h /Library/Developer/CommandLineTools/usr/include

上一篇:考研计组chap1计算机系统概述
下一篇:Java 18 介绍及其优势,高效利用
相关推荐
pe7er
2 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep
4 天前
mac生效的终端查看
macos
iOS门童
5 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~
5 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员
5 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl84394
5 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei
5 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利
5 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen
5 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c
5 天前
如虎添翼-MacOS
macos
热门推荐
01GitHub 镜像站点02【OpenClaw 本地实战 Ep.3】突破瓶颈:强制修改 openclaw.json 解锁 32k 上下文记忆03OpenClaw 使用和管理 MCP 完全指南04OpenClaw + 飞书(Feishu)环境搭建指南05OpenClaw优化飞书API 额度已耗尽问题06Claude Code + GLM4.7 避坑指南:解决 Unable to connect to Anthropic services07Clawdbot部署教程:解决‘gateway token missing’授权问题的完整步骤08Window 10部署openclaw报错node.exe : npm error code 12809OpenClaw大龙虾机器人完整安装教程10OpenClaw 接入阿里云百炼 Coding Plan 指南