Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
! LaTeX Error: File `mypackage.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

I am getting the above error message in Ubuntu 10.10. I used this on the Windows machine with MikTeX and it worked fine. I am running TeX Live 2010 on my Ubuntu machine. I put mypackage.sty in a folder called mypackage under directory

/usr/local/texlive/2010/texmf-dist/tex/latex
share|improve this question
add comment

1 Answer 1

up vote 12 down vote accepted

You should not put files into /usr/local/texlive/2010/texmf-dist/tex/latex. That directory should be reserved for TeXLive itself.

If you are on a multi-user system, you can put files into /usr/local/texlive/texmf-local/, but if it's just you on your linux machine, it's easier to put them in ~/texmf. If you do need them in the texmf-local folder you will need to run sudo mktexlsr to rebuild the file database. If you put things into ~/texmf you don't need to do this and your packages will always be found.

See this answer for more details.

share|improve this answer
1  
It could be worth mentioning that for "one-off" packages, it could just be put in the same directory as the .tex file. –  Seamus Jan 13 '11 at 10:29
add comment

Your Answer

 
discard

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.