[Tex/LaTex] LaTeX Error: File `lastpage.sty’ not found

errorstemplatesxetex

I'm using a LaTeX template for a research article

I've converted the .tex file to a minimal example:

\documentclass[fleqn,10pt]{SelfArx}

\begin{document}

\subsection*{Results}

\end{document}

The file SelfArx.cls can be downloaded here

When I compile the LaTeX code above, I get these errors:

enter image description here

How can I resolve this problem?

Best Answer

You can add the package directly in your document. You may create a new auxiliary file called lastpage.sty and copy the entire code of the package that you can consult at http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/lastpage.sty.