PDF generation on CentOS

489 views
Skip to first unread message

Santiago Suarez Ordoñez

unread,
Jul 9, 2009, 10:04:01 PM7/9/09
to sphin...@googlegroups.com, Patrick Lightbody
Hi all, I know Roberto Alsina is doing huge steps towards sphinx
straight pdf generation, but meanwhile, I have to set everything up to
work with pdflatex.

I've easily set everything up on my desktop (debian based) by
installing textlive-latex-extra, but the problem now is that the
production server is a CentOS box (Red Hat Enterprise 5 basically).

We managed to get pdflatex by running:
# up2date -i tetex-latex

But now the build stucks asking for extra files, which I know are
included in textlive-latex-extra, a package that seems not to exist in
the rpm world:
# up2date --showall | grep -i texlive | wc -l
0

Did anyone deal with this problem already? Which is the best setup to
get the pdf generation working without having to install every single
latex related package we can find?

Thanks in advance,
Santi

Tim

unread,
Jul 12, 2009, 4:38:54 PM7/12/09
to sphinx-dev
Well, here are the tetex packages I have installed on CentOS 5.3:

# yum list installed | grep tetex
tetex.i386 3.0-33.2.el5_1.2
installed
tetex-doc.i386 3.0-33.2.el5_1.2
installed
tetex-dvips.i386 3.0-33.2.el5_1.2
installed
tetex-fonts.i386 3.0-33.2.el5_1.2
installed
tetex-latex.i386 3.0-33.2.el5_1.2
installed
tetex-xdvi.i386 3.0-33.2.el5_1.2
installed

Some, like tetex-doc, I'm sure are not needed. I'm not really an
expert on tetex, but I am able to build simple documents - maybe more
is needed for more complex documents.

You might start with the following and see how far that gets you.

yum install tetex tetex-fonts tetex-latex

Regards,
Tim Bower
http://www.sal.ksu.edu/faculty/tim/

Santiago Suarez Ordoñez

unread,
Jul 12, 2009, 11:55:18 PM7/12/09
to sphin...@googlegroups.com
Thanks Tim, I'll try that this week and let you know if it works.

Regards,
Santi

Santiago Suarez Ordoñez

unread,
Jul 13, 2009, 3:19:01 PM7/13/09
to sphin...@googlegroups.com
>> You might start with the following and see how far that gets you.
>>
>> yum install tetex tetex-fonts tetex-latex

> Thanks Tim, I'll try that this week and let you know if it works.

I talked with the support guys and it looks like the tetex,
tetex-latex and tetex-fonts packages were already installed in the
system. The current output I'm getting is:
http://pastebin.com/m3005555c

Does anyone know which package contains the missing file (utf8.def)
and how can we install it in CentOS?

Thank for your help,
Santi

Tim

unread,
Jul 14, 2009, 9:32:51 AM7/14/09
to sphinx-dev
1009 timlinux:~> locate utf8.def
/usr/share/texmf/tex/latex/base/utf8.def
1010 timlinux:~> rpm -qf /usr/share/texmf/tex/latex/base/utf8.def
tetex-latex-3.0-33.2.el5_1.2

try the following to see what all you have with your tetex-latex
package:
rpm -qil tetex-latex

rpm -ql just lists the files without the description of the package.
On my system...
1013 timlinux:~> rpm -ql tetex-latex | wc -l
2079

Hope that helps.
Tim Bower
http://www.sal.ksu.edu/faculty/tim/


On Jul 13, 2:19 pm, Santiago Suarez Ordoñez <santi...@gmail.com>
wrote:

Santiago Suarez Ordoñez

unread,
Jul 14, 2009, 9:47:37 AM7/14/09
to sphin...@googlegroups.com
> 1009 timlinux:~> locate utf8.def
> /usr/share/texmf/tex/latex/base/utf8.def
> 1010 timlinux:~> rpm -qf /usr/share/texmf/tex/latex/base/utf8.def
> tetex-latex-3.0-33.2.el5_1.2

Thanks Tim, found the problem!

[root@openqa01 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 7)
[root@openqa01 ~]# rpm -qa tetex\*
tetex-latex-2.0.2-22.0.1.EL4.10
tetex-fonts-2.0.2-22.0.1.EL4.10
tetex-doc-2.0.2-22.0.1.EL4.10
tetex-afm-2.0.2-22.0.1.EL4.10
tetex-dvips-2.0.2-22.0.1.EL4.10
tetex-xdvi-2.0.2-22.0.1.EL4.10
tetex-2.0.2-22.0.1.EL4.10

Looks like we're not in a Red Hat 5 as I stated, we're working on a
RH4 box, which has an older version of TeTeX in the repo and from what
the support guys say, there's no chance we can get TeTeX v 3 from the
repo on it, the other alternatives I came up whit were:
- Get an RPM, but it looks like there's no official one
- Build from source, not the best for system's stability

Now we're stuck...

Santi

Doug Hellmann

unread,
Jul 14, 2009, 9:56:54 AM7/14/09
to sphin...@googlegroups.com

On Jul 14, 2009, at 9:47 AM, Santiago Suarez Ordoñez wrote:

>
> Looks like we're not in a Red Hat 5 as I stated, we're working on a
> RH4 box, which has an older version of TeTeX in the repo and from what
> the support guys say, there's no chance we can get TeTeX v 3 from the
> repo on it, the other alternatives I came up whit were:
> - Get an RPM, but it looks like there's no official one
> - Build from source, not the best for system's stability
>
> Now we're stuck...

I've had good results with the pre-built binaries from http://tug.org/texlive/
under CentOS 4 (which should be the same as RHEL 4). As someone who
has no TeX background at all, I found the TeX Live package easy to
install and get working under both CentOS and OS X.

Doug

Santiago Suarez Ordoñez

unread,
Jul 14, 2009, 10:10:42 AM7/14/09
to sphin...@googlegroups.com
Thanks Doug. I'll try with a local install and see how that works.

BTW, did I read 1.2 GB for the install? OMG!!

Saludos
Santi

Doug Hellmann

unread,
Jul 14, 2009, 1:28:34 PM7/14/09
to sphin...@googlegroups.com

On Jul 14, 2009, at 10:10 AM, Santiago Suarez Ordoñez wrote:

>
> Thanks Doug. I'll try with a local install and see how that works.
>
> BTW, did I read 1.2 GB for the install? OMG!!

That seems about right. You can also run it off of the DVD, IIRC, but
I had space so ran through the installer.

Doug

Santiago Suarez Ordoñez

unread,
Jul 14, 2009, 2:59:02 PM7/14/09
to sphin...@googlegroups.com
Using Texlive solved my problem!

I downloaded the installation script:
http://mirror.ctan.org/systems/texlive/tlnet/2008/install-tl-unx.tar.gz

Extracted and executed the install-tl script:
$ ./install-tl

Changed the installation dir to the place I wanted and started the
install (it took around 40 minutes downloading stuff, around 1700
MB!!).

Added the new bin dir to the path and that's all.

Thanks guys for your help!

Saludos
Santi

Tim Bower

unread,
Jul 19, 2009, 11:17:35 AM7/19/09
to sphinx-dev
I tried to convert a larger document to PDF and got into some minor
trouble my self, so I wanted to document my finding with tetex on
CentOS 5.3 (RHEL5) in hopes of helping the next person to go down the
same road.

The error I was getting was saying that my inputenc package in LaTeX
was not set-up to handle utf-8.
Well, I decided to try to fix my installation first.

Some where, (I lost the URL), I across where someone said that this
error means I should install latex-ucs. For which, of course, CentOS
has no such package available.

After some digging, I cam across this page: http://www.instiki.org/show/InstallPdfLatex,
which gives some instructions for RH users and directed me to the
following, which is latex-ucs.

http://www.unruh.de/DniQ/latex/unicode/unicode.tgz

I downloaded this, extracted it and followed in instructions to just
copy some files and run:
texhash or mktexlsr (I did both, but they seem to do the same thing).

Sure enough, it did NOT work - darn. Then I came across this:
http://termos.vemod.net/how-to-use-utf-8-encoding-with-latex

Which says:
How to Use UTF-8 Encoding with LaTeX

All you need to do is add the following line to your LaTeX document:

\usepackage[utf8]{inputenc}

If your LaTeX compiler complains about utf8, try utf8x instead.

Sphinx put the above in the LaTeX document, but utf8x was one of the
things got from latex-ucs. So I changed the LaTeX source and it
worked perfectly. utf8.def and the new utf8x.def were both in
/usr/share/texmf/tex/latex/base/ and they were clearly related
documents, so I copied utf8.def to a back-up name and made a sym-link
to utf8x.def Now I can cleanly go from rST to latex to pdf. I don't
know if I might someday might need the back-up of utf8.def.

If someone can explain this, that would be great, -- but anyway it
works now and I'm sure that before long, someone else will have the
same issue and hopefully they will find this and between my story and
Santiago's, they'll get something to work also.

Tim Bower,
K-State at Salina

On Jul 14, 1:59 pm, Santiago Suarez Ordoñez <santi...@gmail.com>
wrote:
> Using Texlive solved my problem!
>
> I downloaded the installation script:http://mirror.ctan.org/systems/texlive/tlnet/2008/install-tl-unx.tar.gz
>
> Extracted and executed the install-tl script:
> $ ./install-tl
>
> Changed the installation dir to the place I wanted and started the
> install (it took around 40 minutes downloading stuff, around 1700
> MB!!).
>
> Added the new bin dir to the path and that's all.
>
> Thanks guys for your help!
>
> Saludos
> Santi
>
> On Tue, Jul 14, 2009 at 2:28 PM, Doug Hellmann<doug.hellm...@gmail.com> wrote:
>
> > On Jul 14, 2009, at 10:10 AM, Santiago Suarez Ordoñez wrote:
>
> >> Thanks Doug. I'll try with a local install and see how that works.
>
> >> BTW, did I read 1.2 GB for the install? OMG!!
>
> > That seems about right.  You can also run it off of the DVD, IIRC, but
> > I had space so ran through the installer.
>
> > Doug
>
> >> Saludos
> >> Santi
>
> >> On Tue, Jul 14, 2009 at 10:56 AM, Doug Hellmann<doug.hellm...@gmail.com
> >> > wrote:
>
> >>> On Jul 14, 2009, at 9:47 AM, Santiago Suarez Ordoñez wrote:
>
> >>>> Looks like we're not in a Red Hat 5 as I stated, we're working on a
> >>>> RH4 box, which has an older version of TeTeX in the repo and from
> >>>> what
> >>>> the support guys say, there's no chance we can get TeTeX v 3 from
> >>>> the
> >>>> repo on it, the other alternatives I came up whit were:
> >>>> - Get an RPM, but it looks like there's no official one
> >>>> - Build from source, not the best for system's stability
>
> >>>> Now we're stuck...
>
> >>> I've had good results with the pre-built binaries fromhttp://tug.org/texlive/
Reply all
Reply to author
Forward
0 new messages