giellalt/lang-khk

Installation error for MacOS

Closed this issue · 11 comments

Hi @flammie,

I ran the first command of installation in the MacOS terminal:

kbatsuren@ lang-khk % ./autogen.sh

I have the following error:

Initial automake setup of shared-smi
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 
Can't exec "aclocal": No such file or directory at /opt/homebrew/Cellar/autoconf/2.72/share/autoconf/Autom4te/FileUtils.pm line 299.
autoreconf: error: aclocal failed with exit status: 2

seems to me like perhaps outdated homebrew installation of autoconf or a mismatch between several installed autotools versions (e.g. homebrew and apple's own)

I see, but I'm not sure how to fix it. Here are my versions of homebrew, autoconf:

kbatsuren@ lang-khk % brew --version
Homebrew 4.3.0
kbatsuren@ lang-khk % autoconf --version
autoconf (GNU Autoconf) 2.72
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

Do you know which tool versions I should check?

I actually installed both tools today.

Thank you very much for all the quick help.

But I have the new error for the second command:

kbatsuren@ lang-khk % ./autogen.sh                            

Looking for giella-core ...
giella-core found in ../

Looking for shared-mul ...
shared-mul found in ../

Initial automake setup of lang-khk
configure.ac:174: installing 'build-aux/config.guess'
configure.ac:174: installing 'build-aux/config.sub'
configure.ac:34: installing 'build-aux/install-sh'
configure.ac:34: installing 'build-aux/missing'
kbatsuren@ lang-khk % ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking build system type... aarch64-apple-darwin23.4.0
checking host system type... aarch64-apple-darwin23.4.0
checking for gt-core.sh... false
checking whether we can set GIELLA_CORE... /Users/kbatsuren/Documents/research/lang-khk/./../giella-core
checking for gt-version.sh... no
checking the version of the Giella Core... configure: error: gt-version.sh could not be found, installation is incomplete!

I also ran this command, but it has the same error as above.

kbatsuren@ lang-khk % git reset --hard
kbatsuren@ lang-khk %  git clean -fx
kbatsuren@ lang-khk % git pull --rebase
Already up to date.
kbatsuren@ lang-khk % ./autogen.sh && ./configure

Hmm, it should automatically download the required giella-core if it is missing but perhaps it needs to be configured too, something like:

$ cd ../giella-core
$ ./autogen.sh
$ ./configure
$ make
$ cd ../lang-khk
$ ./autogen.sh
$ ./configure
$ make

I think this time it is almost installed, but had a new error :(

$ cd ../giella-core
$ ./autogen.sh
$ ./configure
$ make
$ cd ../lang-khk
$ ./autogen.sh
$ ./configure

After running above:

kbatsuren@ lang-khk % ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking build system type... aarch64-apple-darwin23.4.0
checking host system type... aarch64-apple-darwin23.4.0
checking for gt-core.sh... false
checking whether we can set GIELLA_CORE... /Users/kbatsuren/Documents/research/lang-khk/./../giella-core
checking for gt-version.sh... /Users/kbatsuren/Documents/research/lang-khk/./../giella-core/scripts/gt-version.sh
checking the version of the Giella Core... 0.24.0-$
checking whether the Giella Core version is at least 0.23.0... yes
checking for bc... /usr/bin/bc
checking for a Python interpreter with version >= 3.5... python3
checking for python3... /opt/homebrew/bin/python3
checking for python3 version... 3.12
checking for python3 platform... darwin
checking for GNU default python3 prefix... ${prefix}
checking for GNU default python3 exec_prefix... ${exec_prefix}
checking for python3 script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.12/site-packages
checking for python3 extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.12/site-packages
checking python3 module: yaml... no
checking whether to enable yaml-based test... no, yaml is missing
checking for awk that supports gensub... /opt/homebrew/bin/gawk
checking for sed that supports newlines and pipes... /usr/bin/sed
checking for uconv... /opt/homebrew/opt/icu4c/bin/uconv
checking for forrest... no
checking whether to do forrest validation of in-source documentation... no
checking for npm... no
checking for R... no
checking for accuracy... no
checking for onmt_build_vocab... no
checking for onmt_train... no
checking for rsync... /usr/bin/rsync
checking for wget... no
checking for opendiff... /usr/bin/opendiff
checking for see... no
checking for divvun-validate-suggest... /usr/local/bin/divvun-validate-suggest
checking for divvun-checker... /usr/local/bin/divvun-checker
checking for printf... /usr/bin/printf
checking for xfst... false
checking for twolc... false
checking for lexc... false
checking for lookup... false
checking whether to enable xfst building... no
checking for printf... (cached) /usr/bin/printf
checking for foma... /usr/local/bin/foma
checking for flookup... /usr/local/bin/flookup
checking for cgflookup... /usr/local/bin/cgflookup
checking whether to enable foma building... no
checking for hfst-compose... /usr/local/bin/hfst-compose
checking for hfst-compose-intersect... /usr/local/bin/hfst-compose-intersect
checking for hfst-concatenate... /usr/local/bin/hfst-concatenate
checking for hfst-conjunct... /usr/local/bin/hfst-conjunct
checking for hfst-determinize... /usr/local/bin/hfst-determinize
checking for hfst-disjunct... /usr/local/bin/hfst-disjunct
checking for hfst-foma... false
checking for hfst-fst2fst... /usr/local/bin/hfst-fst2fst
checking for hfst-fst2strings... /usr/local/bin/hfst-fst2strings
checking for hfst-fst2txt... /usr/local/bin/hfst-fst2txt
checking for hfst-info... /usr/local/bin/hfst-info
checking for hfst-intersect... /usr/local/bin/hfst-intersect
checking for hfst-invert... /usr/local/bin/hfst-invert
checking for hfst-lexc... /usr/local/bin/hfst-lexc
checking for hfst-lookup... /usr/local/bin/hfst-lookup
checking for hfst-minimize... /usr/local/bin/hfst-minimize
checking for hfst-minus... /usr/local/bin/hfst-minus
checking for hfst-multiply... /usr/local/bin/hfst-multiply
checking for hfst-name... /usr/local/bin/hfst-name
checking for hfst-optimized-lookup... /usr/local/bin/hfst-optimized-lookup
checking for hfst-pair-test... /usr/local/bin/hfst-pair-test
checking for hfst-proc... /usr/local/bin/hfst-proc
checking for hfst-pmatch2fst... /usr/local/bin/hfst-pmatch2fst
checking for hfst-project... /usr/local/bin/hfst-project
checking for hfst-prune-alphabet... /usr/local/bin/hfst-prune-alphabet
checking for hfst-push-weights... /usr/local/bin/hfst-push-weights
checking for hfst-regexp2fst... /usr/local/bin/hfst-regexp2fst
checking for hfst-remove-epsilons... /usr/local/bin/hfst-remove-epsilons
checking for hfst-repeat... /usr/local/bin/hfst-repeat
checking for hfst-reverse... /usr/local/bin/hfst-reverse
checking for hfst-reweight... /usr/local/bin/hfst-reweight
checking for hfst-split... /usr/local/bin/hfst-split
checking for hfst-strings2fst... /usr/local/bin/hfst-strings2fst
checking for hfst-substitute... /usr/local/bin/hfst-substitute
checking for hfst-subtract... /usr/local/bin/hfst-subtract
checking for hfst-summarize... /usr/local/bin/hfst-summarize
checking for hfst-tokenize... /usr/local/bin/hfst-tokenize
checking for hfst-twolc... /usr/local/bin/hfst-twolc
checking for hfst-txt2fst... /usr/local/bin/hfst-txt2fst
checking for hfst-xfst... /usr/local/bin/hfst-xfst
checking for hfst-ospell... /usr/local/bin/hfst-ospell
checking whether hfst is at least 3.16.0 and has the required tools... yes
checking for voikkospell... false
checking for voikkohyphenate... false
checking for voikkogc... false
checking for voikkovfstc... false
checking whether to enable voikko building... no
checking for vislcg3... /usr/local/bin/vislcg3
checking for cg-comp... /usr/local/bin/cg-comp
checking for cg-relabel... /usr/local/bin/cg-relabel
checking for cg-mwesplit... /usr/local/bin/cg-mwesplit
checking whether vislcg3 is at least 1.0.0... yes - 1.4.11.13898
checking whether we can enable vislcg3 targets... yes
./configure: line 8252: syntax error near unexpected token `CG3,'
./configure: line 8252: `PKG_CHECK_MODULES(CG3, cg3 > 1.4.0, vislcg_filters=true,'

aha yes, this is probably a missing pkg-config or pkgconf installation

Thank you so much!

Everything is perfectly installed after installing both pkg-config and pkgconf tools.