On 2015-12-13 7:46 AM, Bernard Marsh wrote:
Running it with sudo (which is necessary to install gregorio in
/usr/local/bin) has the problem that sudo resets the environment
variables including PATH and TEXMFLOCAL and so the script fails
with:
... Installing GregorioTeX Installing in
'/usr/local/texlive/texmf-local'. ./install-gtex.sh: line 154:
texhash: command not found Failed. Failed to install GregorioTeX.
Did you forget to run as root?
In fact everything seems to be installed correctly (gregorio -V
reports 4.0, new font files in place etc) - so running texhash
(without sudo) should complete the set up. This resetting of the PATH
& TEXMFLOCAL variables (which I set up in /etc/environment) seems to
be default sudo behaviour in ubuntu 14.04 latest.
You can get around this by running `sudo su ./install.sh`. This will
instantiate a shell which has root privileges and which retains your
environment variables.
I haven't checked on Ubuntu, but it is necessary for texhash to have
root privileges on a Mac when GregorioTeX is installed to the default
location. As a result, we can't simply "demote" that command in the script.
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
(R. Padraic Springuel)
PAX ☧ ΧΡΙΣΤΟΣ
_______________________________________________
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users