LaTeX Error: File `utf8x.def' not found

Polytropon freebsd at edvax.de
Mon Jan 21 06:27:27 UTC 2013


On Sun, 20 Jan 2013 23:17:22 -0700, Modulok wrote:
> > In your LaTeX source file, you have \usepackage[utf8x]{inputenc}
> > somewhere, and you're using UTF-8 characters for whatever reason.
> >
> > You need to install the port "latex-ucs" (in the "print" category)
> > to make this work. I assume there's also a package for this.
> 
> Hmmm. LaTeX is called by sphinx to render some math in my python docs, so I'm
> not sure where the utf-8 reference occurs, probably somewhere in the sphinx
> framework.

I assume it uses UTF-8 as "input language" for widest portability.
You could check some "intermediate LaTeX source file" for occurances
of \usepackage[utf8x]{inputenc} or check if there are some UTF-8
characters present in input.



> I tried to install latex-ucs as suggested, which itself worked, but some of its
> dependents didn't (output shown below).

Maybe those specific dependencies aren't needed? Does the result
work?

As I understand from the error messages, you've been installing
"LaTeX components" manually or by TeXLive, whereas teTeX is a
"package" of lots of related LaTeX stuff.

You can see from this example list that some "additional" software
relies on teTeX, as you can judge from their names:

	teTeX-3.0_5
	teTeX-base-3.0_22
	teTeX-texmf-3.0_8
	dvipsk-tetex-5.95a_5
	ifxetex-20090124_3
	latex-cjk-4.8.2_5
	latex-ucs-20041017_5
	teTeX-texmf-3.0_8
	tex-texmflocal-1.9
	xdvik-tetex-22.84.16_3

On a system maintained via the TeXLive installer, this might look
different.




> Also, why is teTeX a dependency? I
> thought it was no longer maintained?

I'm still using teTeX here, but TeXLive is recommended today.
It seems that still some ports define teTeX as "the LaTeX
dependency", as there is no means to specify _which_ LaTeX
to use (the one that is installed, or via some option like
WITH_TETEX or WITH_TEXLIVE).




> Command output shown below:
> 
> # pkg_add -r latex-ucs
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/latex-ucs.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/printproto-1.0.5.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/libwww-5.4.0_4.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/tex-texmflocal-1.9.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/font-amsfonts-3.02_1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/teTeX-texmf-3.0_8.tbz...
> Done.
> pkg_add: package 'teTeX-texmf-3.0_8' conflicts with latex2e-2003.12_1
> pkg_add: package 'teTeX-texmf-3.0_8' conflicts with tex-3.14159_3
> pkg_add: please use pkg_delete first to remove conflicting package(s)
> or -f to force installation
> pkg_add: pkg_add of dependency 'teTeX-texmf-3.0_8' failed!
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/texi2html-1.82,1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/gd-2.0.35_7,1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/libXext-1.3.0_1,1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/libXp-1.0.1,1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/libXt-1.0.9,1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/libXmu-1.1.0,1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/libXpm-3.5.9.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/libXaw-1.0.8,2.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/t1lib-5.1.2_1,1.tbz...
> Done.
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/ghostscript9-9.05_3.tbz...
> Done.
> pkg_add: package 'ghostscript9-9.05_3' conflicts with ghostscript9-nox11-9.05_3
> pkg_add: please use pkg_delete first to remove conflicting package(s)
> or -f to force installation
> pkg_add: pkg_add of dependency 'ghostscript9-9.05_3' failed!
> Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/All/teTeX-base-3.0_22.tbz...
> Done.
> pkg_add: package 'teTeX-base-3.0_22' conflicts with latex2e-2003.12_1
> pkg_add: package 'teTeX-base-3.0_22' conflicts with tex-3.14159_3
> pkg_add: please use pkg_delete first to remove conflicting package(s)
> or -f to force installation
> pkg_add: pkg_add of dependency 'teTeX-base-3.0_22' failed!

Seems that latex-ucs has some "back-reference" on teTeX ("the"
LaTeX dependency) and also to ghostscript. In worst case, why
not simply install teTeX and see if it does everything you need?
I know there are things that don't work in teTeX (but do in
TeXLive), but I've not encountered one yet (maybe due to my
very specific use of this software).




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list