gregorio-project / gregorio

The Gregorio Project
http://gregorio-project.github.io
Other
155 stars 43 forks source link

Difficulty building example files on macOS #1549

Closed spencerking closed 2 years ago

spencerking commented 2 years ago

When I try to build an example using a command such as the following lualatex --shell-escape test.tex I get errors such as ! LaTeX Error: File 'gregoriotex.sty' not found.. When I run locate gregorio I can see that it is installed at /usr/local/texlive/2020/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty. For some reason it just isn't being found by lualatex. Is this a PATH issue?

If it helps, I am running a full installation of MacTeX-2021 and installed Gregorio using the 6.0.0 pkg.

rpspringuel commented 2 years ago

Please run system-setup.command and post the resulting log file. Since you installed using the pkg, the script should be in /Users/Shared/Gregorio/contrib

spencerking commented 2 years ago
### Gregorio Unix Setup Results
####    Created: Tue Jul 20 14:36:35 CDT 2021
-----------------------------------------------------------------------------

### OS Version
Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64

-----------------------------------------------------------------------------

### LuaTeX Setup
####    Version

This is LuaTeX, Version 1.12.0 (TeX Live 2020)

Execute  'luatex --credits'  for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

LuaTeX is Copyright 2020 Taco Hoekwater and the LuaTeX Team.

####    Location

/usr/local/texlive/2020basic/bin/x86_64-darwin/luatex
/usr/local/texlive/2020/bin/x86_64-darwin/luatex

####    TEXMFLOCAL

/usr/local/texlive/2020basic/texmf-local

#### TEXINPUTS.lualatex
.:{{}/Users/spencerking/Library/texlive/2020basic/texmf-config,/Users/spencerking/Library/texlive/2020basic/texmf-var,/Users/spencerking/Library/texmf,!!/usr/local/texlive/2020basic/texmf-local,!!/usr/local/texlive/2020basic/texmf-config,!!/usr/local/texlive/2020basic/texmf-var,!!/usr/local/texlive/2020basic/texmf-dist}/tex/{lualatex,latex,luatex,generic,}//

#### LUAINPUTS.lualatex
.:{{}/Users/spencerking/Library/texlive/2020basic/texmf-config,/Users/spencerking/Library/texlive/2020basic/texmf-var,/Users/spencerking/Library/texmf,!!/usr/local/texlive/2020basic/texmf-local,!!/usr/local/texlive/2020basic/texmf-config,!!/usr/local/texlive/2020basic/texmf-var,!!/usr/local/texlive/2020basic/texmf-dist}/scripts/{kpsewhich,unsetengine,}/{lua,}//:{{}/Users/spencerking/Library/texlive/2020basic/texmf-config,/Users/spencerking/Library/texlive/2020basic/texmf-var,/Users/spencerking/Library/texmf,!!/usr/local/texlive/2020basic/texmf-local,!!/usr/local/texlive/2020basic/texmf-config,!!/usr/local/texlive/2020basic/texmf-var,!!/usr/local/texlive/2020basic/texmf-dist}/tex/{lualatex,latex,luatex,generic,}//

#### shell_escape
p

#### Shell Escape Commands
bibtex,bibtex8,extractbb,gregorio,kpsewhich,makeindex,repstopdf,r-mpost,texosquery-jre8,

#### openout_any
p

#### openin_any
a

-----------------------------------------------------------------------------

### Gregorio Setup
####    Locations and Versions

/usr/local/texlive/2020/bin/x86_64-darwin/gregorio
Gregorio 5.2.1 (kpathsea version 6.3.2).
Copyright (C) 2006-2019 Gregorio Project authors (see CONTRIBUTORS.md)
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

/usr/local/bin/gregorio-6_0_0-beta1
Gregorio 6.0.0-beta1-release-6.0-3b2d8e39-4501.
Copyright (C) 2006-2021 Gregorio Project authors (see CONTRIBUTORS.md)
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

####    GregorioTeX Locations

##### gregoriosyms.sty
##### gregoriotex-chars.tex
##### gregoriotex-main.tex
##### gregoriotex-nabc.lua
##### gregoriotex-nabc.tex
##### gregoriotex-signs.lua
##### gregoriotex-signs.tex
##### gregoriotex-spaces.tex
##### gregoriotex-syllable.tex
##### gregoriotex-symbols.lua
##### gregoriotex-symbols.tex
##### gregoriotex-common.tex
##### gregoriotex-gsp-default.tex
##### gregoriotex.lua
##### gregoriotex.sty
##### gregoriotex.tex
##### greciliae.ttf
##### greciliae-hollow.ttf
##### greciliae-hole.ttf
##### greciliae-op.ttf
##### greciliae-op-hollow.ttf
##### greciliae-op-hole.ttf
##### greextra.ttf
##### gregorio.ttf
##### gregorio-hollow.ttf
##### gregorio-hole.ttf
##### gregorio-op.ttf
##### gregorio-op-hollow.ttf
##### gregorio-op-hole.ttf
##### granapadano.ttf
##### granapadano-hollow.ttf
##### granapadano-hole.ttf
##### granapadano-op.ttf
##### granapadano-op-hollow.ttf
##### granapadano-op-hole.ttf
##### gregall.ttf
##### gregorio-vowels.dat
##### gsp-default.tex
##### gregoriotex-ictus.tex
##### gresym.ttf
##### parmesan.ttf
##### parmesan-op.ttf
##### gregsmodern.ttf

### LuaTeX Double Checks
#### kpsewhich --all -engine luatex -progname lualatex gregoriotex.sty

#### kpsewhich --all -engine luatex gregoriotex.tex

-----------------------------------------------------------------------------
rpspringuel commented 2 years ago

Okay, I see several things here:

1) You have MacTeX-Basic 2020 as your currently active TeX installation. If you've installed MacTeX 2021 (it is possible to have multiple TeX installations installed) and want to compile documents with it, then you need to make that your active installation (you can do this from the TeX Live Utility in the Configure menu).

2) You have an odd path for TEXMFLOCAL. Normally this path should not contain the distribution year so that files installed in it are available for all distributions. Since yours does contain the distribution year, that suggests that files installed to it will only be available to that particular year's distribution.

3) The currently active version of TeX (MacTeX-Basic 2020) cannot find any of the GregorioTeX components, indicating that they weren't installed in the correct location (the above noted TEXMFLOCAL tree). The file you found using locate is part of the MacTeX 2020 distribution (and not MacTeX-Basic), not one installed by the installer.

Based on the above, I think the installation did not go as expected because of the way that your MacTeX distributions are installed. We can fix this manually by copying the GregorioTeX files to the correct location, but it could also be fixed by redoing the installations of MacTeX 2021 and Gregorio using the installers. Which would you be more comfortable with?

spencerking commented 2 years ago

I'm sorry to get back to you so late on this. I uninstalled MacTex and Gregorio and did a clean install of MacTex 2021. It seems that Gregorio is included with 2021 and I can build the examples in the GitHub repo. Thank you for your help.