[Tex/LaTex] ‘pgfcore.sty file not found’ error? How to fix it

beamerinstallingpackages

I am an amateur user, just using latex for the past one week. When I ran a sample presentation (from the book "Practical Latex" by George Gratzer), I get this error message that a particular file called pgfcore.sty is missing.
I have installed the beamer package from the MiKTeX console.

Should I find the missing file and manually install it? If yes, how to do that?
I'm stuck at this point and I will be very grateful if you could help me with this?
I am using MiKTeX version 2.9 with Windows10 OS.

This is the error message I get while typesetting

Best Answer

While using LaTeX various packages are used.

In case the package is not available then it is downloaded from the net on the fly and installed.

pgfcore.sty is one such package.

You need to install the package. The easiest way to do that is from the Start Menu->All Programs->MikTEX 2.9->Maintenance (Admin)->Package Manager (Admin) and search for the package you need.

You can also open the Settings (Admin) shortcut from that same folder, and choose "Ask me every time" to the option "Install packages automatically". Then, when you compile the document, MikTEX should ask you if you want to install missing packages.

Note: You cannot answer "Yes" to that option because MikTEX won't have admin priviliges when it tries to install the new package, and it won't work.