Solvedhomebrew core mu --with-emacs compile fails on macOS Sierra 10.12.3

Bug report:

Default Troubleshooting

  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • Confirmed this is a problem with specific formulae and not Homebrew/brew? If it's a general Homebrew/brew problem please file this issue at

Expected Behavior

I expected brew install mu --with-emacs to install without error.

Actual Behavior

brew install mu --with-emacs fails on macOS Sierra 10.12.3. In contrast, brew install mu works just fine.

Attempted Diagnosis

The build logs may be difficult to follow, so here's what I did.

Initially, the install failed with this error:

Package guile-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `guile-2.0.pc'
to the PKG_CONFIG_PATH environment variable

Installing guile did not fix the problem, so I edited the formula to disable guile. I also disabled gtk & webkit for good measure. In short, I changed this:

    system "./configure", "--disable-dependency-tracking",

to this:

    system "./configure", "--disable-dependency-tracking",

I've put my (failed) additions on my own branch.

The build log is here.

I tried this both with the standard emacs formula and emacs-plus, but got the same result from both. I also set $EMACS to /usr/local/bin/emacs without success.

Related Issues

I failed to compile mu manually and filed an issue with mu itself.


Here are the gist-logs.

My brew config output

HOMEBREW_VERSION: 1.1.11-132-g17cc40f1
HEAD: 17cc40f112cbb7e5da5ef6d8eb3e3d5afbbd43e5
Last commit: 18 hours ago
Core tap ORIGIN:
Core tap HEAD: 51d046569a1fc72d835449e705f60a7528081280
Core tap last commit: 3 hours ago
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.12.1 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.24.1/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.0/bin/ruby
Java: 1.8.0_102, 1.8.0_66
macOS: 10.12.3-x86_64
Xcode: 8.2.1
X11: 2.7.9 => /opt/X11

My brew doctor output

Your system is ready to brew.

17 Answers

✔️Accepted Answer

Solution without Mono

Here is recipe to build it without Mono -
Nothing is changed except def install => resource("gmime") section


I didn't try solution by @neurolit since Mono is pretty big dependency as for me. But thanks anyway!

I never dived into how Homebrew works but here I noticed brew edit command which is really great :)

So, I researched a bit and found that gmime package (required by mu) can be compiled with --disable-mono option (and actually it was compiled with this option before 3.0.0 version). At this stage it compiles but mu isn't working because something wrong with linker.
But if I manually set GMIME_LIBS and GMIME_CFLAGS then it works.

Would you accept pull request for this? But I'm actually not sure what I fixed and I don't even know what is pkgconfig which is probably something related

Other Answers:

I think I made the changes correctly. Thank you for the detailed

brew edit mu

command, I hadn't used that one before.

def install
 resource("gmime").stage do
   system "./configure", "--prefix=#{prefix}/gmime", "--disable-introspection"
   system "make", "install"
   ENV.append_path "PKG_CONFIG_PATH", "#{prefix}/gmime/lib/pkgconfig"
   ENV.append_path "C_INCLUDE_PATH", "#{prefix}/gmime/include/gmime-2.6"
   ENV.append_path "CMAKE_INCLUDE_PATH", "#{prefix}/gmime/include/gmime-2.6"
   ENV.append_path "CMAKE_LIBRARY_PATH", "#{prefix}/gmime/lib"
system "autoreconf", "-ivf"
system "./configure", "--disable-dependency-tracking",
system "make"

Still getting an error.

checking for mcs... /usr/local/bin/mcs
checking whether /usr/local/bin/mcs is GNU Mono... yes 
checking for gacutil... /usr/local/bin/gacutil
checking for GLIB_SHARP... no

configure: error: Package requirements (glib-sharp-2.0 >= 2.4.0) were not met:

Related Issues:

homebrew core Permissions issue when linking python3
Same as your problem This works for me. Gist Logs:
homebrew core "module 'enum' has no attribute 'IntFlag'" when installing python3
@deering59 Make sure that nowhere in your shell configuration files PYTHONPATH is set to point to yo...
homebrew core Upgrading to Ruby 2.4.1_1 breaks gem command.
Oh hey! That solved it! So both: and seems to do the trick! Thanks!! Ran brew update and retried you...
homebrew core Formula php@5.6 not working on macOS 10.14 (Mojave)
I was able to track the issue down to the packaged OPcache extension Please note we will close your ...
homebrew core Failed to set locale category
Currently I've just added export LC_ALL in my .bash_profile. Please note we will close your issue wi...
homebrew core Upgrading to Xcode CLT 11.0 broke GCC 9
This is a bug in the C library that comes with the updated Xcode To fix it I just upgraded the Xcode...
homebrew core First issues with macOS 10.13 High Sierra
@kylebrowning you can brew install --force-bottle foo for anything you're having trouble building an...
homebrew core wireguard doesn't start anymore
Dug a bit deeper and realized this is already fixed by commit WireGuard/wireguard-tools@457f96b on J...
homebrew core brew install neovim --HEAD fails on macOS Monterey
Can confirm that worked for me In case anyone else needs the steps: brew gist-logs <formula> link OR...
homebrew core Segmentation fault with curl-openssl
@mbence Thanks for the input! Could you please let me know can I revert to that version? I tried to ...
homebrew core qt5 fails to build on macOS 10.11 & 12
Not a solution but if anyone lands here trying to install Qt5 on macOS Sierra and you just want to g...
homebrew core libtiff source no longer available (new patch level)
Some fairly strange errors there For a start you've apparently got a mirror pointing to a .deb which...
homebrew core mu --with-emacs compile fails on macOS Sierra 10.12.3
Solution without Mono Here is recipe to build it without Mono -
core CamelCase Serializer
Objection.js which is built top on knex.js has a tranform fields function Adonis Lucid is also built...
System.Linq.Dynamic.Core System.Linq.Queryable breaking changes in .NET 6
@sofiageo @wihrl @tirth-uhn @enchev I'll try to release an official 1.2.12 on NuGet this weekend ...
core Route not found (404) for any files in public directory
Hey @Drillan767! 👋 Please ensure that you have the StaticFileMiddleware enabled in your start/kerne...
core Saving a model using a command does not terminate
Database connections are long lived connections and you are required to close them manually For ace ...
linuxbrew core glibc: Requires GCC 4.7 or later
OK Is it currently supported to install glibc on rather old systems without root access? I am workin...
axios Axios catch error returns javascript error not server response
I have exactly the same environment Try this: Modify from console.log(error) to console.log(
scrapy ' error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 '
@euler16 for scrapy with Python 3 you'll need with Python 2 you'll need I wanted to install scrapy i...
laradock Mysql. The server requested authentication method unknown to the client [caching_sha2_password]
alter user 'username'@'localhost' identified with mysql_native_password by 'password'; would fix it....
react navigation screenIsActive prop / componentDidFocus event for TabNavigator items
It probably makes sense to add lifecycle hooks to screens In one of my Tabs i need to load Data from...
meteor [] Error: ENFILE: file table overflow
I was getting the same after an upgrade to macOS Sierra Turns out macOS have a harsh limit on number...
ipython Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed
As a temporary fix for anyone just trying to get things working again: It would be really nice if yo...
material ui Module not found: Can't resolve 'material-ui-icons/Menu' Martial Next
For anyone else experiencing this issue: npm install @material-ui/icons
laravel dompdf (1/1) ErrorException Non-static method Barryvdh\DomPDF\PDF::loadView() should not be called statically
This happens because you are namespacing the wrong PDF class You are namespacing Barryvdh\DomPDF\PDF...
webpacker localIdentName option moved in css-loader configuration
I faced same issue after upading css-loader but I solved it If you check css-loader readme ...
react navigation Send data back from child screen?
@itswaze You can do something along these lines to pass back from the child screen ...
react navigation How to goBack from nested StackNavigator?
@dhruvparmar372 According to the NOTE in the doc a navigator's navigation prop may not have the help...
axios POST request works in Browser but not on Node
This might be considered a duplicate of #789 I was able to use the form-data package with Axios in n...
react navigation Best pattern for a 'Save' button in the header
Try setting your component instance's handleSave function as a navigation state parameter after the ...
DefinitelyTyped [@types/react] RefObject.current should no longer be readonly
It's not It'a intentionally left readonly to ensure correct usage even if it's not frozen ...
react native navigation [V3][Android] FATAL EXCEPTION: create_react_context
OK after a good night of sleep I've found why I was having this issue In the I ...
ts node Custom typings not working with ts-node 8.0.2
When using with ts-node you have to add --files flag After updating to ts-node version 8.0.2 the cus...
ohmyzsh compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
Per #9602 (comment) brew cleanup fixed it for me I am using Apple M1 When I added this line: export ...
laradock SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
+1 I'm having the same problem here. Info: Docker version ($ docker --version): Docker version 17.12...
vagrant vagrant box update - Fails with 404 Not Found error
A workarround to add in your Vagrantfile: Vagrant version Host operating system Ubuntu 16.04.3 LTS G...
vagrant vagrant --help displays a rubygems error
To fix this error: Vagrant version Host operating system Expected behavior vagrant and vagrant --hel...
date fns Can't resolve 'date-fns/_lib/format/longFormatters'
You probably forgot to install date-fns or Code: import DateFnsUtils from '@date-io/date-fns'; ...
virtualenv Error creating virtualenv with python3.6
The original poster's problem is due to not having the 'python3.6-venv' package installed ...
provider A Product was used after being disposed. flutter: Once you have called dispose() on a Product, it can no longer be used.
Oh I see what you're doing Don't: DO: i have a ChangeNotifireProvider that such that i do pushReplac...
react navigation Reset to nested route, "There is no route defined for..."
A quick workaround (not heavily tested): set the key property to null on your action. ...
axios Adding headers to method
Edit: I had to add Authorization to allowed headers in my CORS filter @jffernandez I'm having the sa...
axios Adding Retry Parameter
@mericsson I am too in need of exponential backoff when retrying I've put together the following whi...
homebrew openjdk Cask adoptopenjdk8 exists in multiple taps
I think AdoptOpenJDK8 should be removed from the homebrew-cask-versions repo Somone(TM) should proba...
nativescript cli TNS doctor doesn't recognize Xcode (High Sierra)
HI @philipfeldmann Can yhou please run xcodebuild -version and paste the output? May be Xcode is ins...
axios BaseURL not being used
Please IGNORE THIS ISSUE Found the problem: I was setting baseUrl but it should be baseURL. ...
axios How to ignore SSL issues
You can configure axios to use a custom agent and set rejectUnauthorized to false for that agent: Ho...
ipython NameError: name 'sys' is not defined
Ok that was easy The Jedi release on 12/25 version 0.18.0 is breaking tab completion pip install --u...