mk4ht: command not found

Mark Brethen mark.brethen at gmail.com
Thu Nov 5 23:19:26 PST 2015


There is a problem with the texlive-htmlxm port. Both /opt/local/bin/ mk4ht and /opt/local/libexec/texlive/binaries/mk4ht are symlinks to a nonexistent file.

> On Nov 6, 2015, at 12:44 AM, Mark Brethen <mark.brethen at gmail.com> wrote:
> 
> I’m getting the following error during build:
> 
> :info:build ./mkhtml.sh
> :info:build ./mkhtml.sh: line 14: mk4ht: command not found
> :info:build This is TeX, Version 3.14159265 (TeX Live 2015/MacPorts 2015_5) (preloaded format=tex)
> 
> Port texlive-htmlxml contains:
> /opt/local/bin/mk4ht
> 
> and is installed.
> 
> 
> The ./mkhtml.sh is called from the Makefile:
> 
> DOCBASE=manual
> 
> all:	$(DOCBASE).pdf index.html
> 
> rmtmpfiles:
> 	rm -f *.aux $(DOCBASE)*.toc $(DOCBASE)*.idx $(DOCBASE)*.tmp $(DOCBASE)*.xref $(DOCBASE)*.idv $(DOCBASE)*.out $(DOCBASE).4??
> 
> clean:	rmtmpfiles
> 	rm -f index.html $(DOCBASE)*.html $(DOCBASE)*.css $(DOCBASE)*.pdf $(DOCBASE)*.log $(DOCBASE)*.ilg $(DOCBASE)*.lg $(DOCBASE)*.dvi $(DOCBASE)*.ind $(DOCBASE)*.png
> 
> $(DOCBASE).pdf:	$(wildcard *.tex)
> 	./mkpdf.sh
> 
> index.html $(DOCBASE).html $(DOCBASE).css:	$(wildcard *.tex)
> 	./mkhtml.sh
> 
> 
> And here is the script:
> 
> #!/bin/sh
> 
> JOBNAME=manual
> 
> CONFIG=reduce
> 
> SECTIONINGDEPTH=3
> 
> test "$1" = "for-sf" && CONFIG=reduce-sf
> 
> # Remove .ind file, could be left over from latex run
> rm -f ${JOBNAME}.ind
> 
> mk4ht htlatex ${JOBNAME} ${CONFIG},${SECTIONINGDEPTH}
> 
> tex '\def\filename{{'"${JOBNAME}"'}{idx}{4dx}{ind}} \input idxmake.4ht'
> 
> # finally, run makeindex and latex once
> sed -e 's/^\(\\indexentry{[^@]*\)\\textbar/\1"|/' \
>    -e 's/^\(\\indexentry{[^@]*\)\\underscore/\1_/' \
>    -e 's/^\(\\indexentry{[^@]*\)\\char `\\\\/\1\\\\/' \
>  <manual.4dx >manual.4dxtmp ; mv manual.4dxtmp manual.4dx
> 
> makeindex -o ${JOBNAME}.ind ${JOBNAME}.4dx
> 
> mk4ht htlatex ${JOBNAME} ${CONFIG},${SECTIONINGDEPTH}
> 
> cp ${JOBNAME}.html index.html
> 
> exit 0
> 
> 
> This worked under Mavericks, but now fails under Yosemite.
> 
> 
> 
> Mark
> 
> 
> 
> 



Mark






More information about the macports-dev mailing list