Closed harrygallagher4 closed 4 years ago
Hmm. I have the same platform, and cmake clearly sees that glib-2.0 is installed... I am not sure what the problem could be.
I don't think this is a fix, but could you clone this repository and try running bundle exec compile
?
I'm having the same (or similar) problem. I tried cloning the repository and running bundle exec compile
, but got an error...
bundler: command not found: compile
Install missing gem executables with `bundle install`
Not sure what I need to install.
Same here, cannot build it, it seems to be because of libxml which it cannot find in /include/libxml
which makes sense as there is no /include
directory in macos
I needed to do these two things to get mathematical to install...
Fix the MacOS header file location by running this command in a terminal window: open Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
Add the Homebrew package path to PKG_CONFIG_PATH
(e.g., in .bash_profile): export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
What version(s) of macOS are you all running? I wonder if some recent updates changed directory locations.
The problem appears to have started with an include directory reorg in some version of MacOS 10.14.x and/or Xcode 10. There is a discussion in the Xcode 10 release notes. It's a weird problem because it only seems to affect users who installed Xcode and Mojave, including their upgrades, in a particular sequence.
Well that's just super. 😞 Thanks for the doc link. I'll see if I can suss out a fix as well.
Oh, wow I totally forgot I opened this issue. I wish I could be more help but a few days after this I tried compiling again and it worked fine, same for just installing the gem. Also, I had already installed the headers @jtkorb linked when I first ran into this :\
This is a major problem now since Catalina does not supply the workaround package to install the system headers in /usr/include.
This is triggered when looking for the libxml-headers among other things as the search paths for headers specified in the script do not exist on macOS anymore: To get the correct paths for searching you should look in the sysroot produced by xcrun --show-sdk-path
(under which you will find usr/include including the libxml2 headers).
When I try to install this gem on macos 10.14.3 it seems that it can't find glib. I've tried using the system lasem which fixes the gem install, but actually using the mathematical gem still doesn't work.
Here's what I'm assuming is the important part of the output:
glib is installed, and package config can find it
Full gem install output: