lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing bundled LilyPond


From: Reinhold Kainhofer
Subject: Re: Removing bundled LilyPond
Date: Thu, 25 Sep 2008 01:37:25 +0200
User-agent: KMail/1.9.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 24. September 2008 schrieb notesetter:
> I'd like to remove LilyPond 2.10.33, which came bundled with Ubuntu Studio
> 8.04 and then install 2.11.59. I ran the install shell script and 2.11.59
> installed in my home directory fine. However, when I go to use it, the
> 'lilypond' command still invokes version 2.10.33. I started to remove the
> old version through synaptic, but it also tries to remove other packages
> that I want to keep like rosegarden and some others that I think I
> shouldn't remove.
>
> This appears to present me 3 options:
>
> 1) Install 2.11.59 via shell script and alter my system so that the command
> 'lilypond' points to the new installation in my home directory.

That's what I do when compiling the git version:

- -) In ~/.bashrc add ~/.bin or ~/bin (or whatever you prefer for your 
user-owned scripts) to the path:
       export PATH=~/.bin:$PATH
- -) In that directory, create an executable file "lilypond" with the contents:
address@hidden:~$ cat ~/.bin/lilypond
#!/bin/sh
exec ~/lilypond/lilypond/out/bin/lilypond --relocate "$@"


I suppose the lilypond installation already takes care of the second thing, so 
all you need to do is to properly prepend the path to the PATH shell 
variable. Note that the order is important, so you have to prepend the ~/.bin 
(like you see above). In contrast, if you use PATH=$PATH:~/.bin, then the 
shell will look into the system-wide pathes first and again find the 
installed 2.10 before your self-installed 2.11 version.

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI2s81TqjEwhXvPN0RAk/VAJ9WfWbZlvVynIAoCKYI4gXzEuoDPQCgjxPU
Rxosmvm2MKtx4CnfVFrYCg8=
=gM9M
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]