Closed ahloiscreamo closed 4 years ago
WARNING: cannot find glib-2.0.m4 in aclocal's search path.
You may see fatal macro warnings below.
I looked in: /usr/share/aclocal
If these files are installed in /some/dir, set the
ACLOCAL_FLAGS environment variable to "-I /some/dir",
or append ":/some/dir" to ACLOCAL_PATH,
or install /usr/share/aclocal/glib-2.0.m4.
WARNING: cannot find glib-gettext.m4 in aclocal's search path.
You may see fatal macro warnings below.
I looked in: /usr/share/aclocal
If these files are installed in /some/dir, set the
ACLOCAL_FLAGS environment variable to "-I /some/dir",
or append ":/some/dir" to ACLOCAL_PATH,
or install /usr/share/aclocal/glib-gettext.m4.
Short version: you probably need to install dev packages of gettext/glib.
So it appears the macros are not found. I don't use Void linux, but I think these would be the steps to solve this:
./autogen.sh
.bashrc
, .bash_profile
, or similar by adding:
export ACLOCAL_PATH="/wherever/they/were:$ACLOCAL_PATH"
*: if you don't know how to do this, read the docs for your package manager or search online for a way to list the files in a package. If we assume that the way to do this is to run splorg --list PACKAGE_NAME
, you would find the macro locations by running:
splorg --list gettext | grep "m4"
If the m4 files are not part of the packages, you probably need to install separate -dev/-devel versions of those packages (whichever convention is used on Void).
Thanks @jplloyd
i ended up putting the macro file manually in aclocal path. i got both glib-2.0.m4/glib-gettext.m4 on gnome gitlab.
but then it complain configure:13773: error: possibly undefined macro: AM_NLS
i resolve that by installing gettext-devel.
Thanks for the workaround, i appreciate it~
i got both glib-2.0.m4/glib-gettext.m4 on gnome gitlab.
It's good to have development code when you want to follow development. But otherwise I'd suggest you search the actual package providing these files (any good distribution would provide them) and install these.
Thanks for the workaround, i appreciate it~
For the record, what @jplloyd proposed is not a workaround. That's software compilation 101. :-)
Hi, im trying to compile but stuck when it complain about missing file on aclocal path. i have glib (glib-2.62.3_1 ) and gettext (gettext-0.20.1_1) installed. my system
Linux void_ahloi 5.4.10_1 #1 SMP PREEMPT Thu Jan 9 17:28:36 UTC 2020 x86_64 GNU/Linux