Closed unrealslayer closed 10 months ago
where is your pkg.m4
file located?
where is your
pkg.m4
file located?
/usr/share/aclocal/pkg.m4 (root:root) (-rw-r--r--)
It seems that the pkg-config
command is found, but pkg.m4
is not found, you could fix this via:
export ACLOCAL_PATH=/usr/share/aclocal
It seems that the
pkg-config
command is found, butpkg.m4
is not found, you could fix this via:export ACLOCAL_PATH=/usr/share/aclocal
Thank you! Build fixed! Do you know why i must explicit set ACLOCAL_PATH var?
I'm not sure the exact reason, but https://www.gnu.org/software/automake/manual/html_node/Macro-Search-Path.html may help you to understand.
Oh, I see, I found your aclocal
path is /usr/local/bin/aclocal
, so the default macro search path sould be /usr/local/share/aclocal
, but actually your pkg.m4 is located in /usr/share/aclocal
which in turn is not the default macro search path. that's why you should explicitly set ACLOCAL_PATH
your pkg-config
command path is /usr/bin/pkg-config
, it shouldn't be /usr/local/bin/pkg-config
?
The most obvious reason is that you installed pkg-config via apt, but other packages were installed via other package manager or manully built and --prefix=/usr/local option was used.
The most obvious reason is that you install pkg-config via apt, but other packages is installed via other package manager or manully built and --prefix=/usr/local option is used.
Its true, automake, autoconf was builded from sources, but pkg-config is not... I am did not know what it can give me so strange errors, thank you again! I will try build pkg-config from sources too and hope what aclocal variable no longer needed explicit set!
I am trying build ctags from sources, but get following error:
Build output
```bash ################################################################## # The paths and versions for tools # ################################################################## autoreconf is /usr/local/bin/autoreconf ------------------------------------------------------------------ autoreconf (GNU Autoconf) 2.72c Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or laterBuild command
```bash cd ${SRC_DIR} ./autogen.sh CC="${C_COMPILER}" CFLAGS="${CFLAGS}" \ ./configure --prefix=${INSTALL_DIR} make -j $NUM_THREADS all sudo make install all cd - ```Build output in start, says what i have
pkg-config
with0.29.2
, but error sayspkg-config
not installed or version less then0.18
... I am not understand what going wrong. Trying checkconfigure.ac
file for more information, but without result...How i can fix this?