3

My MacTex seems to be missing the "pn2pdf" executable

I searched the whole harddrive, but it only finds the corresponding documentation. I tried sudo tlmgr install --reinstall petri-nets but file is still missing, although tlmgr reports petri-nets is installed. (see tlmgr info petri-nets below)

Any ideas?

package:     petri-nets
category:    Package
shortdesc:   A set TeX/LaTeX packages for drawing Petri nets.
longdesc:    Petri-nets offers a set of TeX/LaTeX packages about Petri nets and related models. Three packages are available: the first allows the user to draw Petri-nets in PostScript documents; the second defines macros related to PBC, M-nets and B(PN) models; and a third that combines the other two.
installed:   Yes
revision:    24088
sizes:       doc: 285k, run: 49k
relocatable: No
cat-date:    2014-10-15 19:06:54 +0200
cat-license: gpl
collection:  collection-pictures
  • 1
    It's a bug in TeX Live: the script is saved in the doc subtree instead of the scripts subtree. – egreg Dec 21 '15 at 11:30
  • 1
    I filed a report on the TeX Live mailing list: tug.org/pipermail/tex-live/2015-December/037567.html – egreg Dec 21 '15 at 11:36
  • thank you for creating that bug ticket and giving me that hint. i thought it would be enough to navigate the finder to / and initiate a search for "pn2pdf". but as it shows, it wasn't. – Florian Z. Dec 21 '15 at 12:12
  • Thanks, for info. Thus it should be enough to do a sudo tlmgr update --all once tonights build is done – Florian Z. Dec 22 '15 at 8:05
2

There is an Update available for TexLive / MacTex

For MacTex via TexLive Utility:

TeX Live Utility application, which is to be found in the /Applications/TeX directory. Open it, choose the «Update» list, then select the petri-nets package and update it (command-u, or go the menu «Action/Update selected package(s)»

Thanks to Franck Pastor


For MacTex via console:

sudo tlmgr update --self

sudo tlmgr update --all


Otherwise:

If you really need to do it manually:

As egreg pointed out, the pn2pdf file is there, but it is not executable and not in the right folder.

Steps for MacOs / MacTex:

  1. make pn2pdf executable

    sudo chmod a+x /usr/local/texlive/2015/texmf-dist/doc/generic/petri-nets/pn2pdf

  2. create link from texbin path to pn2pdf, until TexLive will include pn2pdf that is correctly placed. It may be needed to manually remove this link, once the petri-nets package provided in TexLive is updated.

    sudo ln -s /usr/local/texlive/2015/texmf-dist/doc/generic/petri-nets/pn2pdf /Library/TeX/texbin/pn2pdf

  • 1
    Note that now that the problem is reported and solved, an easier way to update the TeXLive distribution of MacTeX would to use the TeXLive Utility application, which is to be found in the /Applications/TeX directory. Open it, choose the «Update» list, then select the petri-nets package and update it (command-u, or go the menu «Action/Update selected package(s)». – Franck Pastor Dec 23 '15 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.