Discussion:
Configuring home/bin PATH directory
Keizen Li Qian
2018-11-12 23:39:23 UTC
Permalink
Hello,

I installed 2.18.2 on a drive with a partitioned home directory which had
an old ~home/bin/lilypond. Somewhere the path had been set to this
directory so even after convert-ly successfully converted my old files to
2.18, running lilypond still grabbed an old version in home/bin. After
renaming the old directory, I get bash: /home/bin/lilypond: No such file or
directory

I'd appreciate any detailed suggestions for updating this path and finding
information like this. Thank you!

Keizen
David Bowen
2018-11-13 02:11:00 UTC
Permalink
What OS are you using? For Linux your $PATH is usually set in one of the
shell . files, for Windows it is set in ControlPanel\System.

David Bowen
Post by Keizen Li Qian
Hello,
I installed 2.18.2 on a drive with a partitioned home directory which had
an old ~home/bin/lilypond. Somewhere the path had been set to this
directory so even after convert-ly successfully converted my old files to
2.18, running lilypond still grabbed an old version in home/bin. After
renaming the old directory, I get bash: /home/bin/lilypond: No such file or
directory
I'd appreciate any detailed suggestions for updating this path and finding
information like this. Thank you!
Keizen
_______________________________________________
lilypond-user mailing list
https://lists.gnu.org/mailman/listinfo/lilypond-user
Keizen Li Qian
2018-11-13 15:43:17 UTC
Permalink
That worked! Thanks for walking me through it.

Keizen
they/them
Post by Martin Tarenskeen
Keizen,
Having the ${PATH}: at the beginning defeats the whole point of the
change. The directories in the PATH will be searched in the order they
occur. So putting $PATH at the beginning means everything in the current
PATH will be searched before /usr/share, which means the old lilypond will
be found first. Try PATH=/usr/share:$HOME/bin:$HOME/local/bin:$PATH
David Bowen
Okay, I tried the following. Is something wrong with the syntax? I'm
pointing it to /usr/share/lilypond/2.18.2/ but it is still looking in home.
# set PATH so it includes user's private bin directories
PATH="${PATH}:/usr/share/:$HOME/bin:$HOME/.local/bin:$PATH"
Keizen
they/them
Hi David,
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
$ ls .local/
share
Please let me know your ideas. Thank you.
Keizen
they/them
It's going to depend on the shell you are using. I use bash and for me
the initial setting of $PATH happens in .bash_profile and then I have
additions in .bash_login and .bashrc. All of these files are in my home
directory. If you wanted to change the $PATH for all users, look at the man
page for your shell. Most shells have a global script that gets called for
all users on login and that file (or files) will be mentioned in the man
page.
David Bowen
Thanks, David. I'm using Ubuntu. How do I navigate to the relevant
one? Thanks again.
Keizen
they/them
Post by David Bowen
What OS are you using? For Linux your $PATH is usually set in one of
the shell . files, for Windows it is set in ControlPanel\System.
David Bowen
Post by Keizen Li Qian
Hello,
I installed 2.18.2 on a drive with a partitioned home directory
which had an old ~home/bin/lilypond. Somewhere the path had been set to
this directory so even after convert-ly successfully converted my old files
to 2.18, running lilypond still grabbed an old version in home/bin. After
renaming the old directory, I get bash: /home/bin/lilypond: No such file or
directory
I'd appreciate any detailed suggestions for updating this path and
finding information like this. Thank you!
Keizen
_______________________________________________
lilypond-user mailing list
https://lists.gnu.org/mailman/listinfo/lilypond-user
Martin Tarenskeen
2018-11-13 08:31:22 UTC
Permalink
Hello, 
I installed 2.18.2 on a drive with a partitioned home directory which had an old ~home/bin/lilypond. Somewhere the path had been set to this
directory so even after convert-ly successfully converted my old files to 2.18, running lilypond still grabbed an old version in home/bin. After
renaming the old directory, I get bash: /home/bin/lilypond: No such file or directory
I'd appreciate any detailed suggestions for updating this path and finding information like this. Thank you!
Keizen
Hi Keizen,

~home/bin/lilypond or /home/bin/lilypond doesn't look right to me

I would expect something like ~/bin/lilypond or /home/${USER}/bin/lilypond

In a terminal what does

which lilypond

return? And what did you expect it to return?

And what do you get if you type

echo $HOME

Also check files like .bashrc and .bash_profile in you HOME directory.

I am talking Linux (Fedora) here, you did not mention what OS you use.
--
MT
J Martin Rushton
2018-11-13 09:08:34 UTC
Permalink
Post by Martin Tarenskeen
Hello, 
I installed 2.18.2 on a drive with a partitioned home directory which
had an old ~home/bin/lilypond. Somewhere the path had been set to this
directory so even after convert-ly successfully converted my old files
to 2.18, running lilypond still grabbed an old version in home/bin. After
renaming the old directory, I get bash: /home/bin/lilypond: No such file or directory
I'd appreciate any detailed suggestions for updating this path and
finding information like this. Thank you!
Keizen
Hi Keizen,
~home/bin/lilypond or /home/bin/lilypond doesn't look right to me
I would expect something like ~/bin/lilypond or /home/${USER}/bin/lilypond
In a terminal what does
    which lilypond
return? And what did you expect it to return?
And what do you get if you type
    echo $HOME
Also check files like .bashrc and .bash_profile in you HOME directory.
I am talking Linux (Fedora) here, you did not mention what OS you use.
OP quoted the error message: "bash: /home/bin/lilypond: No such file or
directory", so I think we can all safely assume Linux or something like
Cygwin.
Urs Liska
2018-11-13 09:24:41 UTC
Permalink
Post by J Martin Rushton
Post by Martin Tarenskeen
Post by Keizen Li Qian
Hello,
I installed 2.18.2 on a drive with a partitioned home directory which
had an old ~home/bin/lilypond. Somewhere the path had been set to this
directory so even after convert-ly successfully converted my old files
to 2.18, running lilypond still grabbed an old version in home/bin. After
renaming the old directory, I get bash: /home/bin/lilypond: No such file or directory
I'd appreciate any detailed suggestions for updating this path and
finding information like this. Thank you!
Keizen
Hi Keizen,
~home/bin/lilypond or /home/bin/lilypond doesn't look right to me
I would expect something like ~/bin/lilypond or /home/${USER}/bin/lilypond
In a terminal what does
    which lilypond
return? And what did you expect it to return?
And what do you get if you type
    echo $HOME
Also check files like .bashrc and .bash_profile in you HOME directory.
I am talking Linux (Fedora) here, you did not mention what OS you use.
OP quoted the error message: "bash: /home/bin/lilypond: No such file or
directory", so I think we can all safely assume Linux or something like
Cygwin.
Indeed, and I'd expect something like /usr/bin/lilypond or
/home/<username>/bin/lilypond

The OP should also tell us how LilyPond was installed (I assume from the
downloaded installer).

Urs
Loading...