title: Failed to install ruby 2.5.0 thru rbenv macOS High Sierra
body: <p>I am using macOS High Sierra and have been trying to install ruby 2.5.0 thru rbenv but keep getting error as following</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I tried <code>brew doctor</code> and <code>brew upgrade rbenv ruby-build</code> before install <code>rbenv install -v 2.5.0</code></p>
  
  <p>still getting the same error </p>
  
  <p>Is anyone know how to solve this issue?</p>