首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Rails上使用搜索(ElasticSearch) (macOS 12.4)出错: Libcurl初始化的objc[36397]:+[NSNumber初始化]

在Rails上使用搜索(ElasticSearch) (macOS 12.4)出错: Libcurl初始化的objc[36397]:+[NSNumber初始化]
EN

Stack Overflow用户
提问于 2022-08-05 04:11:42
回答 1查看 67关注 0票数 0

尝试在本地控制台(即ElasticSearch)中的macOS蒙特雷12.4上使用搜索踢( Model.reindex)会导致以下错误:

代码语言:javascript
复制
ETHON: Libcurl initialized
objc[36397]: +[NSNumber initialize] may have been in progress in another thread when fork() was called.
objc[36397]: +[NSNumber initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
EN

回答 1

Stack Overflow用户

发布于 2022-08-05 04:11:42

请参阅https://stackoverflow.com/a/52230415/1276696

.bash_profile中添加以下行并重新启动终端:

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY="YES"

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73244573

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档