Following unpacking, the installation page from CNS directs the following:
The following will setup the CNSsolve program . Important: do not issue the “make install” command.
- edit the file cns_solve_env – change the line: setenv CNS_SOLVE ‘location of CNSsolve directory’
- before using CNSsolve you must:
Note: this requires the csh or tcsh Unix shell.
But I’m using bash, and have just setup CCP4 to also work under bash. The problem is that the setenv command isn’t implemented in bash – instead the command is export and it has a different syntax. What to do? Thanks to Kay Diederichs for this tip (via the CCP4BB archive).
Rather than sourcing cns_solve_env, there is a hidden file under cns_solve_1.3, with the name .cns_solve_env_sh
So, add the following line to .profile in your home directory (using the vi editor, [esc] :wq to save and quit). Note, I moved cps_solve_1.3 to /applications manually
The file .cns_solve_env_sh must also be edited to provide the location of cns_solve (in this case, /applications)