Virtual envrironment install questions

I’m trying to install the latest version (2.5.8) on my FreeBSD and I have some questions on it, it seems to have some other issues since I last installed it.

scripts/build/ has

"--with-openfst-includes=-I${openfst_build}/build/include" \
"--with-openfst-libs=-L${openfst_build}/build/lib" && \

I don’t think you need the -I and -L there, at least freeBSD doesn’t build with them, I also get a warning that you need to build FST with --enable-static --enable-shared --enable-ngram-fsts , the script only builds it with --enable-far

there’s output_file="$(realpath “$4”)" in the build scripts, freeBSDs realpath doesn’t work on files that do not exist, which is the case of the output files. (I guess linux will have the same issue)

I see eigen3 is built for kenml, but I get a warning it it not found when building kenml itself, should it be build with it?

Both phonitisaurus and kenml have fixed freeBSD bugs in the provided versions you host, it would be nice to update them to a later version (kenml > 8 march ( phonetisaurus > 13 may (, Kaldi > 29 jan ( (didn’t try Kaldi yet, might be up to date)

When installing the makefile has this entry for Larynx, requiring nanoTTS, is this true, or maybe a copy paste from the nanoTTS install? Also is the provided torch-1.6.0-cp37-cp37m-linux_x86_64 special or can I just use the pip version 1.7 from the pytorch project? (If I can get that to work on bsd)

# -----------------------------------------------------------------------------
# Larynx: text to speech
# -----------------------------------------------------------------------------

.PHONY: larynx
ifeq ($(ENABLE_LARYNX),yes)

install-larynx: $(TORCH_WHEEL)
        "$(srcdir)/scripts/install/" "$(NANOTTS_PRE_FILE)" "$(DESTDIR)$(prefix)"

        $(DO_DOWNLOAD) "$(TORCH_WHEEL)" "$(LARYNX_ARCH).whl"


A freeBSD only issue is that the install command used in the install scripts has a different syntax in freeBSD (it doesn’t have the --target-directory , the target directory should be listed as last parameter instead) Mac OSX might do the same.