installing jekyll for the first time and issues
Faced this issue when installing ruby for the first time.
December 21, 2021 · 64 words · 1 min read · tech, programming
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.
a quote i like
At some point, the pain of not doing it becomes greater than the pain of doing it. ― Steven Pressfield, The War of Art