I’ve been trying to install Jekyll lately and I’ve had no luck. I’ve followed the jekyll installation guides, and gone down plenty of rabbit holes on stack overflow, etc. I’m not the most technical person so once I get into bash profile, and configure logs, etc. I’m lost. Here are the details…
I’m using all the current software (MacOS Big Sur 11.1), xcode 12.3, xcode CommandLineTools 12.3. (Both downloaded from apple development site) Ruby 3.0.0, rbenv 1.1.2, gcc 7.5.0. (All 3 downloaded from homebrew).
I’ve tried to install jekyll with rbenv. When I use rbenv, I get an error saying “ERROR: Failed to build gem native extension”. There were answers on google/stack overflow saying to add certain code snippets to my bash profile, but that didn’t seem to work.
I also saw a post saying the native extension error was common was rbenv, so I decided to try with RVM. When I try to get RVM installed, I get…
“Error running ‘env CFLAGS=-O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -Iemail@example.com/include LDFLAGS=-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -Lfirstname.lastname@example.org/lib ./configure --prefix=/Users/Matt/.rvm/rubies/ruby-3.0.0 --disable-install-doc --enable-shared’,
please read /Users/Matt/.rvm/log/1609691282_ruby-3.0.0/configure.log
There has been an error while running configure. Halting the installation”
Configure.log has a section…
tool/config.guess already exists
tool/config.sub already exists
checking build system type… x86_64-apple-darwin20.2.0
checking host system type… x86_64-apple-darwin20.2.0
checking target system type… x86_64-apple-darwin20.2.0
checking for ld… ld
checking for gcc-ar… no
checking for g++… g++
checking for gcc-nm… no
checking for gcc-ranlib… no
checking for gcc… gcc
checking whether the C compiler works… no
configure: error: in
/Users/Matt/.rvm/src/ruby-3.0.0': configure: error: C compiler cannot create executables See config.log’ for more details
I opened config.log, but I don’t know what to be looking at. Related to the lines above, These ‘checks’ were also done when I tried installing jekyll with rbenv. When I use gcc -v in my command line to look at the configuration, I see…
Since I’m on Big Sur (11.1), I don’t have the option for 10.14.sdk.
My questions are
- Could this be the reason my jekyll and RVM installs are failing? It seems like in the checks, some gcc stuff isn’t being found. I don’t know if this is the reason, but it’s my best guess.
- If so, how do I fix it? I’ve tried running different commands to change the sysroot to 11.1, but I get errors saying invalid option or no input files.
I feel like I’m out of my league at this point. Any help would be greatly appreciated. Thanks!