While installing cryoSPARC v2 I noticed how the installer adds the necessary paths to $PATH and it could potentially give users issues.
This was the bare ~/.bashrc of the user that installed cryoSPARC v2:
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
During the installation I told cryoSPARC v2 to add the path(s) to the ~/.bashrc file. So after the install I took a look at the ~/.bashrc file and found this:
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
export PATH=/usr/local/cryosparc2/cryosparc2_master/deps/external/mongodb/bin:/usr/local/cryosparc2/cryosparc2_master/deps/anaconda/bin:/usr/local/cryosparc2/cryosparc2_master/bin:/usr/local/cryosparc2/cryosparc2_master/deps/anaconda/bin:/usr/local/cryosparc2/cryosparc2_master/bin:/usr/local/cuda-10.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/cryosparc2-user/.local/bin:/home/cryosparc2-user/bin
# Added by cryoSPARC:
export PATH="/usr/local/cryosparc2/cryosparc2_master/bin":$PATH
It looks like the cryoSPARC v2 installation (Or one of the dependencies) is spitting out the environment $PATH into an export statement in the ~/.bashrc. This is an issue since the ~/.bashrc is sourced after /etc/profile and with these modifications is essentially hard coding a user’s path.
Would you please look into where this is occurring and fix it?
P.S. Sorry I was unable to figure out how to get the text of the really long export PATH line to wrap nicely.