Hi Fulvio Your scripts are for csh (or tcsh) so won't work under bash. Have you checked whether there are versions for sh (or bash) already set up? If not you will have to run them under csh, or better still tcsh.
If the script doesn't work with the version of csh or tcsh you are using you should try debugging it, since the error message by itself is fairly useless without knowing which command in your script caused it. Debugging shell scripts is very simple: just type 'set verbose' or 'set echo' at the command line before sourcing your script: 'set verbose' echoes the lines of your script before variable substitution, and 'set echo' echoes them after substitution (the 'unset' command reverses the effect of 'set'). You should be able to tell from the last line echoed which is the offending command in the script that is giving the error message; then we can go from there. An unfortunate downside of using csh/tcsh is that unlike bash the syntax is not standardised, so if despite all efforts at debugging, the version you are using steadfastly refuses to work, you could try to install another version, though admittedly this may not be easy if it's not supported by your distribution. Cheers -- Ian On 12 July 2012 15:49, fulvio saccoccia <[email protected]> wrote: > Dear ccp4 users, > I tried to install CNS under Debian 64bit. I followed the installation > giude as reported by CNS developers but I received the following > message when souurcing cns_solve_env: > > bash: setenv: command not found > bash: setenv: command not found > bash: cns_solve_env: line 32: syntax error near unexpected token > `setenv' > bash: cns_solve_env: line 32: ` if ( ! $?CNS_ARCH ) setenv CNS_ARCH ` > $CNS_SOLVE/bin/getarch`' > > I know that the script would set all variables; it is indicated for csh > (or tcsh) shell. I tried to run the script under a csh shell but I > received a different error: > > Word too long > > The above statement is also received if a bash-optimized script is run. > > Does anyone have experience in CNS installation and environment setting? > Any advice? > > Thanks in advance > > Fulvio Saccoccia > Dept. of Biochemical Sciences > Sapienza University of Rome, Italy
