【发布时间】:2023-02-12 04:08:59
【问题描述】:
OSX/Monterey/M1/Arm/Homebrew:我这辈子都做不到:
./configure --with-jemalloc
它死于
checking jemalloc/jemalloc.h presence... no
configure: error: jemalloc requested but not found
即使它就在那里:/opt/homebrew/Cellar/jemalloc/5.2.1_1/include/jemalloc/jemalloc.js。
brew --prefix jemalloc 和 jemalloc-config --includedir 看起来都是正确的。
我尝试了各种版本:
export RUBY_CONFIGURE_OPTS="--with-jemalloc-include=$(brew --prefix jemalloc)/include
和/或
./configure --with-jemalloc-include=$(brew --prefix jemalloc)/include
但没有骰子。甚至不确定这些环境变量/标志是否受到 ruby 的尊重,或者它们是否是某种 rvm/rbenv/ruby-build 的东西。
我决定直接使用 ruby 的配置而不是 rvm/build 工具进行所有测试。
【问题讨论】: