I am working on server running on CENTOS 7.
I have compiled a few software from source code. I had executed ./configure, make, make install as SUPERUSER.
To be accessible I need to set a PATH. I added the following lines in ~/.bashrc file as SU
for adding PATH to HISAT2
export PATH="/home/bioinformatics/Arindam/Software/Hisat2/hisat2-2.1.0/:$PATH"
As SUPERUSER it worked fine. But once I moved out of SU I was not able to do so. Next I added the same lines in ~/.bashrc but not as SU and this did my job pretty well.
Now I need the software to be accessible to other users as well. How do I do it. Which file must be editted ~/.bashrc, ~/.bash_profile, /etc/profile and should I do it as SU?
Is there any other alternative?