Hi,
On Sun, Jun 13 2021, lolo pinpin wrote:
[...]
>> *checking for GLIB... noconfigure: error: Package requirements (glib-2.0
>> >= 2.50 gobject-2.0 gio-2.0) were not met:No package 'glib-2.0' foundNo
>> package 'gobject-2.0' foundNo package 'gio-2.0' foundConsider adjusting the
>> PKG_CONFIG_PATH environment variable if youinstalled software in a
>> non-standard prefix.Alternatively, you may set the environment variables
>> GLIB_CFLAGSand GLIB_LIBS to avoid the need to call pkg-config.See the
>> pkg-config man page for more details.*
[...]
> additional info:
>
> --------------------------------------------------------
> *which pkg-config*
> /home/linuxbrew/.linuxbrew/bin/pkg-config
> -------------------------------------------------------------------
You're probably running into the same problem that I ran into: linuxbrew
installed its own version of pkg-config as the result of some dependency. This
pkg-config shadows the system pkg-config and only looks in the linuxbrew tree.
If glib isn't found there, you'll get this error.
You could install mu/mu4e with linuxbrew as well, which, however, will also pull
in Emacs (and a bunch of other stuff). In principle I wouldn't mind, but I
haven't been able to find out how to install a GUI Emacs with linuxbrew. So I
decided to go another way. I wrote a small shell script that sets the path and
then compiles mu/mu4e:
```
#/bin/bash
# Set PATH to a minimal value, so that linuxbrew doesn't interfere.
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
./autogen.sh
make
```
Place it in the mu source directory, make it executable (`chmod 755 my-build.sh`)
and run it with `./my-build.sh`.
The script doesn't install the files, but that can be done from the command
line: linuxbrew doesn't interfere (at least not on my machine).
HTH
--
Joost Kremers
Life has its moments