I have been trying to setup a environment variable in Cygwin using the command
./primos: line 8: /prilaunch.pl: No such file or directory
chmod: failed to get attributes of `step1.sh': No such file or directory
echo "export PRIMOSBASE=/directory/for/primosfiles" >> ~/.bashrc
to append the command to the end of your
.bashrc file, so that the variable is set each time you use Cygwin. Then run
to make it take effect immediately.
NOTE: Make sure you use double brackets (
>>) to append. It might be a good idea to make a backup of
.bashrc just in case. If you're not comfortable with I/O redirection, an alternative is to edit
.bashrc with an editor. I think
vim is among the default tools in Cygwin.