From owner-freebsd-questions@FreeBSD.ORG Mon Jan 21 06:27:27 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B9D42A6A for ; Mon, 21 Jan 2013 06:27:27 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6A331CEF for ; Mon, 21 Jan 2013 06:27:27 +0000 (UTC) Received: from r56.edvax.de (port-92-195-45-17.dynamic.qsc.de [92.195.45.17]) by mx01.qsc.de (Postfix) with ESMTP id 38B5F3DD17; Mon, 21 Jan 2013 07:27:25 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r0L6RR8a003294; Mon, 21 Jan 2013 07:27:27 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 21 Jan 2013 07:27:27 +0100 From: Polytropon To: Modulok Subject: Re: LaTeX Error: File `utf8x.def' not found Message-Id: <20130121072727.ce51e5fb.freebsd@edvax.de> In-Reply-To: References: <20130121041248.bcf50625.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 06:27:27 -0000 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, ...