Adding a program to bash path

General support questions
Post Reply
Mr_Keystrokes
Posts: 3
Joined: 2018/03/12 15:38:39

Adding a program to bash path

Post by Mr_Keystrokes » 2018/04/05 08:50:10

Hi,

I installed a program called BWA and another called SAMTOOLS.
If I echo $PATH I can see it in the path.
If I run: which bwa - I see it in /usr/local/bin/
However, it is not present in /home/bin/ - which as I understand is equal to $HOME

Do i need to add it to the .bash_profile file tool?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Adding a program to bash path

Post by TrevorH » 2018/04/05 09:29:45

There's no such thing as /home/bin (unless you have a user called 'bin').

What is the actual problem?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Mr_Keystrokes
Posts: 3
Joined: 2018/03/12 15:38:39

Re: Adding a program to bash path

Post by Mr_Keystrokes » 2018/04/05 10:12:25

Yeah I meant /home/random_user/bin

The problem is that when I run a program called seqsero it returns:

sh: bwa: command not found
sh: bwa: command not found
sh: samtools: command not found
sh: samtools: command not found
sh: bwa: command not found
sh: bwa: command not found
sh: samtools: command not found
sh: samtools: command not found

So I assume that bwa and samtools are not in the bash path, or am I wrong?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Adding a program to bash path

Post by TrevorH » 2018/04/05 12:39:34

Are you running this from a terminal session or from e.g. crontab?

Yes, that looks like you don't have the directory containing those executables in your PATH. Perhaps something is resetting it for you.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply