I am doing as follows:
#The first step is to expand the .tar.gz file
#and I get this
# /home/hugo/Sismos/sac
#at the ~/sac/bin I have files
#sacinit.csh and sacinit.sh
#the README instructions say: ... and the sacinit file is modified accordingly.
#In the bin folder I have sacinit.csh and sacinit.sh, in these two files I did:
setenv SACHOME /home/hugo/Sismos/sac #at sacinit.csh
export SACHOME=/home/hugo/Sismos/sac #at sacinit.sh
#then gedit ~/.cshrc adding the lines
setenv SACHOME /home/hugo/Sismos/sac
source ${SACHOME}/bin/sacinit.csh
#After saving and exiting the file, enter
source ~/.cshrc
#and happen this:
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
setenv: command not found
bash: /bin/sacinit.csh: No such file or directory
#also I did:
gedit ~/.bashrc
#and add to last the lines:
export SACHOME=/home/hugo/Sismos/sac
. ${SACHOME}/bin/sacinit.sh
#then saving and exiting the file
#then . ~/.bashrc
#and happen
bash: ./home/hugo/Sismos/sac/bin/sacinit.sh: No such file or directory
After all these steps, still I do not get SAC working, please, any suggestions
#The first step is to expand the .tar.gz file
#and I get this
# /home/hugo/Sismos/sac
#at the ~/sac/bin I have files
#sacinit.csh and sacinit.sh
#the README instructions say: ... and the sacinit file is modified accordingly.
#In the bin folder I have sacinit.csh and sacinit.sh, in these two files I did:
setenv SACHOME /home/hugo/Sismos/sac #at sacinit.csh
export SACHOME=/home/hugo/Sismos/sac #at sacinit.sh
#then gedit ~/.cshrc adding the lines
setenv SACHOME /home/hugo/Sismos/sac
source ${SACHOME}/bin/sacinit.csh
#After saving and exiting the file, enter
source ~/.cshrc
#and happen this:
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
setenv: command not found
bash: /bin/sacinit.csh: No such file or directory
#also I did:
gedit ~/.bashrc
#and add to last the lines:
export SACHOME=/home/hugo/Sismos/sac
. ${SACHOME}/bin/sacinit.sh
#then saving and exiting the file
#then . ~/.bashrc
#and happen
bash: ./home/hugo/Sismos/sac/bin/sacinit.sh: No such file or directory
After all these steps, still I do not get SAC working, please, any suggestions
-
let see your steps:
See below
On Jun 8, 2016, at 03:46, Hugo Loyola <hugoe.loyolat<at>gmail.com> wrote:
OK
I am doing as follows:
#The first step is to expand the .tar.gz file
#and I get this
OK
# /home/hugo/Sismos/sac
#at the ~/sac/bin I have files
Ubuntu, as other Linux use bash shell, so you must use sacinit.sh
#sacinit.csh and sacinit.sh
remember that sacinit.sh must have executable permission, so in the directory /home/hugo/Sismos/sac/bin run the command:
chmod +x sacinit.sh
#the README instructions say: ... and the sacinit file is modified accordingly.
Depending where was untar the the distribution
#In the bin folder I have sacinit.csh and sacinit.sh, in these two files I did:
not will be used, setenv is used in other Unix systems (Sun etc)
setenv SACHOME /home/hugo/Sismos/sac #at sacinit.csh
export SACHOME=/home/hugo/Sismos/sac #at sacinit.sh
OK, but here also you must also set the other variables as my anterior e-mail, in your case
export SACHOME=/home/hugo/Sismos/sac
export PATH=${PATH}:${SACHOME}/bin
export SACAUX=${SACHOME}/aux
#then gedit ~/.cshrc adding the lines
Bad
setenv SACHOME /home/hugo/Sismos/sac
replace by:
export SACHOME=/home/hugo/Sismos/sac
source ${SACHOME}/bin/sacinit.csh
replace by:
source ${SACHOME}/bin/sacinit.sh
or
source /home/hugo/Sismos/sac/bin/sacinit.sh
#After saving and exiting the file, enter
OK.
source ~/.cshrc
#and happen this:
Correct, your Linux not known the setenv command
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
The same as anterior
setenv: command not found
bash: /bin/sacinit.csh: No such file or directory
perhaps sacinit.csh is not executable, but you must to use sacinit.sh
#also I did:
OK
gedit ~/.bashrc
#and add to last the lines:
export SACHOME=/home/hugo/Sismos/sac
. ${SACHOME}/bin/sacinit.sh
OK, but between the dot and $ must be a blank
#then saving and exiting the file
Also here . ~/.bashrc
#then . ~/.bashrc
#and happen
Here or sacinit.sh is not in the PATH or it is not executable.
bash: ./home/hugo/Sismos/sac/bin/sacinit.sh: No such file or directory
HTH,
M.
After all these steps, still I do not get SAC working, please, any suggestions
----------------------
SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)
Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/