Following up on my last post on how to update Ruby to the latest version on OS X, I recently ran into an error when trying to update again to Ruby 2.5.0.

configure: error: clang version 3.0 or later is required

I did a bit of research and Stack Exchange was super helpful.  This seems to be Mac OS X Sierra and High Sierra update issue.  But maybe it affects other versions too. 

I tried to check the clang version on my Mac using

clang –version

This unfortunately gave me the error:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

I did a bit of research and settled on the following steps:

  • Update RVM to the latest version. This step might not be entirely necessary but I usually like to have the most updated versions of stuff:

rvm get stable.

  • Download and Install Xcode developer tools.  This will take some time to run, and you might need to agree to the license terms, etc.

xcode-select –install

  • Then try running the Ruby update again:

rvm install Ruby-[version] (in my case Ruby-2.5.0)

Worked beautifully and Ruby 2.5.0 installed with no dramas.  Incidentally from my research online this also seems to solve the Git problem.

Hope it helps someone.


About The Author

Leave a Reply