Ruby   发布时间:2022-04-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了无法通过rbenv macOS High Sierra安装ruby 2.5.0大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用macOS High Sierra并且一直在尝试通过rbenv安装 ruby 2.5.0但是仍然会出现以下错误
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
compiling miniprelude.c
translaTing probes probes.d
compiling bignum.c
compiling class.c
error: error reading '/dev/fd/9'
1 error generated.
clang: error: unable to remove file: Operation not permitted
dtrace: failed to compile script probes.d: Preprocessor failed to process input program
make: *** [probes.h] Error 1
make: *** WaiTing for unfinished jobs....e

我在安装rbenv install -v 2.5.0之前尝试了brew doctor和brew升级rbenv ruby​​-build

仍然得到同样的错误

有谁知道如何解决这个问题?

解决方法

我在使用ruby-build(由rbenv和其他人使用)安装ruby时遇到了类似的问题,我现在使用以下解决方法来避免它.

这似乎是由于dtrace正在使用macOS 10.3.3进行更新.

首先尝试this,sudo chmod -s /usr/sbin / dtrace

如果在安装ruby时不起作用,那么disable dtrace

RUBY_CONFIGURE_OPTS =“ – disable-dtrace”rbenv install 2.5.0

您还可以将RUBY_CONFIGURE_OPTS =“ – disable-dtrace”导出到.bashrc或.zshrc文件中.

rbenv/ruby-build has notified的维护者这对ruby核心团队很有希望很快得到修复.

大佬总结

以上是大佬教程为你收集整理的无法通过rbenv macOS High Sierra安装ruby 2.5.0全部内容,希望文章能够帮你解决无法通过rbenv macOS High Sierra安装ruby 2.5.0所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。