I just installed TeXstudio in my computer (I'm running Windows 7) and installed MiKTeX as well. I wrote a file and when I try to compile it messages like File 'cite.sty' not found. \usepackage or File 'url.sty' not found. \usepackage appear.

I tried using the Package Manager as stated in this question but when I try to do that, with any package, a message appears saying that it couldn't connect to the server.

Isn't there another way to install these packages without using the package manager? I've downloaded the file cite.sty from here and saved it in the folder where all the other packages are, but it is still not compiling. Any ideas?

  • 1
    if you are saving cite.sty by hand save it to the folder with the document, adding it to the folders managed by the package manager will just confuse it or you or both:-) Feb 16, 2017 at 19:43
  • Well, it's really the simplest way. Did you launch MPM as administrator or as user?
    – Bernard
    Feb 16, 2017 at 19:44
  • @Bernard I've launched it as User, I'm using a computer from my work so I don't have administrator permissions. Should I ask for them? Isn't it possible to install them without being admin?
    – Tendero
    Feb 16, 2017 at 19:54
  • @DavidCarlisle Well, putting the files in the document folder worked! It's not the most classy way to do it, but it's good enough for me. Write it as an answer if you want so I can accept it.
    – Tendero
    Feb 16, 2017 at 20:06
  • @Tendero must be a duplicate, I'll see... Feb 16, 2017 at 20:07

1 Answer 1


There are two main points to consider when installing a package manually (which you should ideally do with administrative privileges, because it's MikTeX):

  • Never use the automatically generated file tree. This is just because you normally don't want your packages to be modified by a (potentially not working) package manager. Install it to any other folder and add it as TeX root (via MikTeX Settings).
  • After doing so you have to refresh the filename database (FNDB) and maybe also to update formats. That's done via the MikTeX Settings.

If you just need the files for one project, it is mostyle also enough to just copy them to that directory.

You must log in to answer this question.

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