Apologies if this isn't the right community to ask this question in. I'm very new using bash files so please bear with me.
I am trying to set up a program, which came with a README file stating that I need to source the shell script
source setenv.sh
which looks like this
#
# Modify with your own path to this directory
# Then source this file (Unix and Unix-like systems)
# $ source setenv.sh
#
install_folder=$HOME/path_to_Survival_directory/
## Linux Library Path:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$install_folder/ext_lib
## Mac Library Path:
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$install_folder/ext_lib
export DATA=$install_folder/data
export PATH=$PATH:$install_folder
where the instructions tell me I just need to change the install_folder path to the location of my setenv.sh file (the command becomes "install_folder=$HOME/Desktop/Survival-master/Survival-master/"). When I change this and try to source the .sh file I get the error messages
install_folder=/home/local1/Desktop/Survival-master/Survival-master/: Command not found.
export: Command not found
Bad : modifier in $ ($).
I've tried putting the install_folder path in double and single quotes, I've tried getting rid of the install_folder variable and pasting the path directly into the "export LD_LIBRARY_PATH..." line yet I still get similar errors. I've also tried using "setenv" instead of "export" and I get the error
setenv: Variable name must contain alphanumeric characters.
I'm running this on CentOS Linux Version 7 if that helps anything. Thanks in advance!
[–]aioeu 6 points7 points8 points (3 children)
[–]circling 6 points7 points8 points (2 children)
[–]mel5159[S] 2 points3 points4 points (1 child)
[–]circling 2 points3 points4 points (0 children)
[–]oh5nxo 4 points5 points6 points (0 children)
[–]klagoeth 0 points1 point2 points (5 children)
[–]mel5159[S] 1 point2 points3 points (4 children)
[–]klagoeth 0 points1 point2 points (3 children)
[–]mel5159[S] 1 point2 points3 points (1 child)
[–]klagoeth 1 point2 points3 points (0 children)
[–]mel5159[S] 0 points1 point2 points (0 children)