For instance,
gcc -o tex4ht tex4ht.c -DENVFILE=’"~/tex4ht.dir/texmf/tex4ht/base/unix/tex4ht.env"’ -DKPATHSEA -DHAVE_DIRENT_H -lkpathsea
or
gcc -O2 -DKPATHSEA -I/usr/include -L/usr/lib -o tex4ht tex4ht.c -DHAVE_DIRENT_H -lkpathsea
When the address of tex4ht.env is not explicitly given, the texmf.cnf file might need records similar to the following ones.
when executed as root installs the following packages on Ubuntu/Debian.
If a file is already present, a warning is issued and the instruction can be retried after omitting the request for the installed package.
A given address may start with the character ‘~’. This character is interpreted to be the directory address of the root (as provided in an environment variable named HOME).
The file tex4ht.env may be renamed to ‘.tex4ht’, if your system allows names consisting only of the extension part.
Generated August 24, 2020 - tex4ht home page