Some issues with install

12 views
Skip to first unread message

Ulf Holbrook

unread,
May 4, 2023, 3:53:15 AM5/4/23
to nanoc
Hello!
I'm pretty new to Ruby and working with nanoc is a great chance to get acquainted with the language. I'm on OSX 12.6.5, using ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin21].
When running "gem install nanoc" the terminal returns
/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)
The mkmf.log file specifies
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
         ^~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: note: did not find header 'config.h' in framework 'ruby' (loaded from '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks')

I'm at a loss right now, could anyone give me a pointer to sort the issue?
Thanks!

Denis Defreyne

unread,
May 6, 2023, 7:23:06 AM5/6/23
to noreply-spamdigest
Hey Ulf,

That error isn’t directly familiar to me, unfortunately. Though I do have a recommendation which hopefully will work:

1. Install Homebrew (if you haven’t already) — https://brew.sh
2. Install Ruby using Homebrew: `brew install ruby`
3. Verify that `ruby --version` says Ruby 3.2 now

Then you’re ready to go. The Ruby version provided by Homebrew is more up to date and better in all aspects!

Hope this helps,

--
You received this message because you are subscribed to the Google Groups "nanoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanoc+un...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages