I'm trying to do my CV with moderncv but Texmaker show me an error
!LaTeX Error:File 'moderncv.cls' not found.
But the moderncv macro is installed in TeX Live 2011.
I'm trying to do my CV with moderncv but Texmaker show me an error
!LaTeX Error:File 'moderncv.cls' not found.
But the moderncv macro is installed in TeX Live 2011.
On Linux From a Terminal, type sudo mktexlsr to update the files database, and then kpsewhich moderncv.cls, just to check that it is correctly installed.
On Windows For TeX Live, you can start a Command Prompt with admin rights and proceed as for Linux (without sudo, of course). For MiKTeX, you are probably better using the graphical tools: update the Filename Database from the 'admin' version of the settings manager.
I downloaded the moderncv from
https://ctan.org/tex-archive/macros/latex/contrib/moderncv
and copied the folder into
/usr/local/texlive/2016basic/texmf-dist/tex/latex/
Then I ran the following terminal command:
> sudo texhash
to let LaTeX know about the new folder in the file system.
Running my moderncv file again in my favorite LaTeX editor 'texmaker' is showed up properly. :)
sudo mktexlsrto update the files database, and thenkpsewhich moderncv.cls, just to check that it is correctly installed. – Koji Apr 10 '12 at 08:47which texorwhich kpsewhichto be sure that the correct TeX Live installation is in use, in case you have two (eg, one installed by yourself, and one installed by your linux distro as a dependency to another package). – mpg Apr 10 '12 at 20:35sudo, of course). For MiKTeX, you are probably better using the graphical tools: update the Filename Data Base from the 'admin' version of the settings manager. – Joseph Wright Apr 15 '12 at 08:00