我正在尝试按照本网站的说明进行操作。 https://github.com/lewagon/setup/blob/master/macOS.md
我做了这个课程,它在我的MacBook pro上工作得很好,但它不能在我的Mac上工作。当我尝试将rbenv install 2.4.4放入终端时,我不断得到这个:
➜ ~ rbenv install 2.4.4
ruby-build: use openssl from homebrew
Downloading ruby-2.4.4.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.4.tar.bz2
Installing ruby-2.4.4...
ruby-build: use readline from homebrew
BUILD FAILED (OS X 10.13.6 using ruby-build 20180822)
Inspect or clean up the working tree at /var/folders/xp/klxg47b13z37040q9qskx_q80000gp/T/ruby-build.20180914070221.21380
Results logged to /var/folders/xp/klxg47b13z37040q9qskx_q80000gp/T/ruby-build.20180914070221.21380.log
Last 10 log lines:
translating probes probes.d
compiling main.c
compiling dmydln.c
compiling miniinit.c
error: error reading '/dev/fd/8'
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....
你能给我的任何帮助将不胜感激。我正在考虑擦拭我的mac并将其恢复到出厂设置并再次尝试。
正如评论中建议的那样,您可能需要注意防病毒软件虽然您使用的是rbenv,但我发现rvm报告了类似的问题。用户也收到了与您相同的例外情况。也许它可以帮助你了解如何解决它:https://github.com/rvm/rvm/issues/4313
该问题的记者的错误是,与您的相似:
error: error reading '/dev/fd/4'
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
检查你现在的红宝石
$Ruby -v
将其更新为ruby版本2.4.4
$rvm list known
$rvm install 2.4.4
$rvm use 2.4.4 --default
$gem install bundler
如果有帮助,请告诉我!