TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed the TeXLive 2012 version on /usr/local. Then I have installed the malayalam package and the malayalam.sty is in the correct place (ie at /usr/local/texlive/2012/texmf-dist/tex/latex/malayalam)

But I cant use the file the termiinal gives the error message the package is not found

also kpsewhich command couldn't find the file.

share|improve this question

migrated from stackoverflow.com Dec 1 '13 at 20:09

This question came from our site for professional and enthusiast programmers.

Issue the command texhash or mktexlsr to update TEX’s filename database and check kpsewhich malayalam.sty at terminal – texenthusiast Dec 1 '13 at 20:15
You should have installed the package in /usr/local/texlive/texmf-local/tex/latex/malayalam, not in the main tree. Then you have to issue sudo mktexlsr to update the file name database. – egreg Dec 1 '13 at 20:28
@egreg Please make that an answer – Joseph Wright Jan 11 '14 at 10:12

The correct location for installing TeX related files not included in the TeX Live distribution is under


so, in your case, you should create

sudo mkdir -p /usr/local/texlive/texmf-local/tex/latex/malayalam

and copy malayalam.sty in the created directory. After that you have to refresh the file name database:

sudo mktexlsr

Why not saving the file in /usr/local/texlive/2012? Because when a new release of TeX Live is issued, you would have to chase the old distribution for the files you have added in the meantime. This isn't necessary if one uses the texmf-local tree.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.