Closed vipin04 closed 5 years ago
I was able to solve this issue by providing clang compiler provided by brew, instead of using clang provided by Xcode command line tools.
brew install llvm
Installed missing headers using by following this blog https://donatstudios.com/MojaveMissingHeaderFiles
Installed the ruby racer with brew's llvm
sudo gem install therubyracer -- --with-cxx=/usr/local/opt/llvm/bin/clang++
if Xcode command line tools are no longer supported by therubyracer, then it should be added to the documentation.
thx @vipin04 this saved me a bunch of hours of struggling. I'm migrating an old ruby project to Mojave. I would like to add that yuo can also configure bundler to use the clang compiler provided by brew with:
bundle config build.therubyracer --with-cxx=/usr/local/opt/llvm/bin/clang++
While trying to install therubyracer on Mac OS 10.14.1 with command
sudo gem install therubyracer
I get following error
I checked if libv8 is installed with command
gem list -i libv8
It returns true
Complete logs
I tried to use g++ 8.2 compiler to install therubyracer, but it still got failed with following errors
sudo gem install therubyracer -- --with-cxx=/usr/local/gcc-8.2/bin/g++-8.2