When trying to install the cryoSPARC v2 worker on a RHEL 7.3 machine I always stumble upon this error:
bin/cryosparcw: line 31: cd: /local0/cina/cryosparc2/cryosparc2_worker/bin
/local0/cina/cryosparc2/cryosparc2_worker/bin/../: No such file or directory
If I add the line
echo "$script_dir"
to the script bin/cryosparcw
the output is:
/local0/cina/cryosparc2/cryosparc2_worker/bin
/local0/cina/cryosparc2/cryosparc2_worker/bin
bin/cryosparcw: line 31: cd: /local0/cina/cryosparc2/cryosparc2_worker/bin
/local0/cina/cryosparc2/cryosparc2_worker/bin/ā¦/: No such file or directory
Therefore, the variable script_dir contains a 2-line path whereas it should be a single line. On Ubuntu 16.04 it works as expected and Iām able to install it. Maybe a distro-specific bug? Any clues on how to solve this problem?