OSX/Monterey/M1/Arm/Homebrew:我一生都无法让它工作:
./configure --with-jemalloc
Run Code Online (Sandbox Code Playgroud)
它死了
checking jemalloc/jemalloc.h presence... no
configure: error: jemalloc requested but not found
Run Code Online (Sandbox Code Playgroud)
即使它就在那里:/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
Run Code Online (Sandbox Code Playgroud)
和/或
./configure --with-jemalloc-include=$(brew --prefix jemalloc)/include
Run Code Online (Sandbox Code Playgroud)
但没有骰子。甚至不确定这些环境变量/标志是否受到 ruby 的尊重,或者它们是否是一些 rvm/rbenv/ruby-build 的东西。
我打算直接使用 ruby 的配置而不是 rvm/build 工具进行所有测试。
请尝试以下操作:
\n\xe2\x9d\xaf export HOMEBREW_PREFIX=$(brew --prefix)\n\xe2\x9d\xaf export CPPFLAGS="$CPPFLAGS -I $HOMEBREW_PREFIX/include"\n\xe2\x9d\xaf export LDFLAGS="$LDFLAGS -L $HOMEBREW_PREFIX/lib"\n\xe2\x9d\xaf cd ruby-2.7.6 && ./configure --with-jemalloc\n\xe2\x9d\xaf make && make install\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
968 次 |
| 最近记录: |