0

I initially tried rbenv and followed this person's issue but I ended up switching to RVM and getting this error:

Error running '__rvm_make -j4',
please read /Users/thendralprabu/.rvm/log/1622423552_ruby-2.7.2/make.log

There has been an error while running make. Halting the installation.

Here's the order of steps I attempted so far.

rvm install 2.7.2
rvm get master
rvm reinstall 2.7.2

Here's what my make file is telling me, and my errors have been pointing me in the direction of the *include statement in the makefile, telling me that the file doesn't exist and I'm not sure how to address that.

  • Here's what my make file is telling me, and my errors have been pointing me in the direction of the *include statement in the makefile, telling me that the file doesn't exist and I'm not sure how to address that. fatal error: 'CoreFoundation/CFBase.h' file not found #include /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:13:10: note: did not find header 'CFBase.h' in framework 'CoreFoundation' (loaded from '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks') – Thendral Prabu May 31 '21 at 01:25
  • It helps to include details like that with an edit to the question where there's more room and better formatting. – tadman May 31 '21 at 04:13

2 Answers2

0

What version of MacOS are you using?

  1. You can try to reinstalls the header files by this command:

    open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Where 10.14 is you current MacOS version.

  1. If you on Big Sur you can try this solution.

  2. Also you can try install ruby with this flag:

    export optflags=" -Wno-nullability-completeness " && rvm install 2.7.2

PS. I think "ruby-on-rails" tag is unnecessary.

Alex Govorov
  • 26
  • 1
  • 4
0

I'd use brew

and rbenv Follow this guide

https://gorails.com/setup/osx/11.0-big-sur

TO ruby install?

make sure to rehash.

Chris113
  • 9
  • 3