Thanks. 
sudo su then ./install.sh works fine.
As far as I can see Ubuntu 14.04 standard texlive 2015 installation does not 
need root privileges for texhash.
Fr Bernard

----- Original Message -----
From: "Br. Samuel Springuel" <rpspring...@gmail.com>
To: "Bernard Marsh" <berna...@ormecourt.com>
Cc: gregorio-users@gna.org
Sent: Sunday, 13 December, 2015 4:26:27 PM
Subject: Re: [Gregorio-users] ubuntu 14.04 installation problem

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

Reply via email to