I seem unable to use any TikZ command in Texmaker. Whenever I use such command, I get the following error:

! LaTeX Error: File `tikz.sty' not found.
Type X to quit or <RETURN> to proceed,or enter new name.
(Default extension: sty)Enter file name:! Emergency stop.<read > \usetikzlibrary

I'm also unable to download the package also. What should I do?

  • 1
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format.
    – jub0bs
    May 19, 2014 at 6:27
  • I suppose you have a MikTeX installation. Right?
    – user2478
    May 19, 2014 at 7:12
  • 1
    You mention texmaker, but... Can you open a terminal and compile your document from there using pdflatex yourdocument.tex?
    – JLDiaz
    May 19, 2014 at 7:30
  • Run as administrator and let MikTeX install stuff.
    – percusse
    May 19, 2014 at 10:48
  • yes,its MikTex. May 19, 2014 at 11:50

1 Answer 1


I am using TexLive 2014 on linux . I experienced same problem. The issue was resolved by adding the following in bashrc
( the shell environment )


and updating actual paths in TexMaker Configuration

enter image description here


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .