[texhax] media9 package installation/compilation

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Oct 17 10:14:03 CEST 2012

Hello Jonathan ,

> I cannot get the media9 package to work.


> LaTeX Error: File `media9.sty' not found.
> 0. Using tlmgr:
> tlmgr: command not found. It looks like Ubuntu took it out?

'Managed' TeX Live does not use tlmgr (the whole point of using Ubuntu's
package system is that it knows what files are available).

> 1. Manually adding media9 package:
> $ sudo -i
> # kpsewhich -var-value TEXMFLOCAL
> /usr/loca/share/texmf
> # unzip media9.zip -d /usr/loca/share/texmf
> # texhash
> # pdflatex test.tex
> This had no effect.

This really should work: what does "kpswewhich media9.sty" give after
the local installation? Doe you have the correct structure


(the 'TDS')?

> 2. Unzip media9.zip from CTAN into my source folder.
> Of course, now it found the style file, but it couldn't compile it. The error was:
> ! Undefined control sequence.
> <argument> \msg_error:nnn 
>            {media9}{support outdated}{l3kernel}\tex_endinput:D 
> I commented out similar lines (it looks like error handling) and produced similar errors:
> ! Undefined control sequence.
> l.90 \pdftex_if_engine:T

I'd expect more errors than that. media9 uses the LaTeX3 'expl3'
programming language, which is very actively developed. You will
certainly have an older version as part of TeX Live, but need the latest
one. On CTAN, you need to find l3kernel.tds.zip and l3packages.tds.zip
and install both in your local TeX tree.
Joseph Wright

More information about the texhax mailing list