♦️

Installing jekyll for the first time and issues

Faced this issue when installing ruby for the first time.

I was trying to install jekyll in my local machine and faced this error

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.

this was fixed by running

sudo xcode-select -switch /

I checked the manpages It seems like this changes the xcode scope to global. and makes available all the tools and env variables.