Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document installation requirements #10

Open
DaveParr opened this issue Oct 15, 2020 · 3 comments
Open

Document installation requirements #10

DaveParr opened this issue Oct 15, 2020 · 3 comments

Comments

@DaveParr
Copy link
Member

We know there are quite a few dependencies for this package to get it to run. Where reasonable we should document an 'installation' process.

For ubuntu I've got this far:

sudo dpkg --configure -a
sudo apt --fix-broken install
sudo apt upgrade
sudo apt-get install texlive-full
sudo apt-get install texinfo

At which point I get an error:

Error in tools::texi2dvi(temp_badge_code, pdf = TRUE, clean = TRUE) : 
  Running 'texi2dvi' on './badgeb414e40e438.tex' failed.
LaTeX errors:
! LaTeX Error: File `ticket.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

! Emergency stop.
<read *> 
         
l.4 \usepackage
               {graphicx}^^M
!  ==> Fatal error occurred, no output PDF file produced! 

I try to determine if this CTAN package is in the system with: kpsewhich ticket.sty which gives no response, i.e. no package installed. Curiously when I run kpsewhich letter.sty I get: /home/davidparr/.TinyTeX/texmf-dist/tex/latex/base/letter.sty which indicates the tinytex install that I had thought I had removed.

Eitherway, i need to work out how to install this missing package to make it run. Will update this as I make more progress.

@DaveParr
Copy link
Member Author

OK, fixed that with: tlmgr install ticket

which gives a return to kpsewhich ticket.sty of:
/home/davidparr/.TinyTeX/texmf-dist/tex/latex/ticket/ticket.sty

New error:

Error in tools::texi2dvi(temp_badge_code, pdf = TRUE, clean = TRUE) :
  Running 'texi2dvi' on './badgeb411e00450a.tex' failed.
LaTeX errors:
! LaTeX Error: File `ifmlogoc' not found.

can work around it by deleting the line from template:
\\put({logo_pos_x}, {footer_pos_y-12}){{\\includegraphics[width={graphics_size}]{{{graphic}}}}}

so this is the default IFM logo in the file I guess.

@DaveParr
Copy link
Member Author

OK, finally fixed with tlmgr install ifmslide and generate pdf as I think is expected :)

@DaveParr
Copy link
Member Author

FWIW if we get far enough that we have tests to run, we might get far enough to automate those tests on GitLab actions on Ubuntu boxes, at which point we'll need to be able to run these commands on setup of the test boxes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant