Home OpendTect v4.0 Users FAQ I get strange errors when I run the installation script [UNIX]
I get strange errors when I run the installation script [UNIX]

When you download and save the script on a MS Windows box, but want to execute the script on a UNIX box you get errors such as:

% chmod +x install.od
% ./install.od
'nknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].
% csh install.od
: Command not found.
: Command not found.
: Command not found.
: Command not found.
: Command not found.
: Command not found.
if: Expression Syntax.

The error messages vary, but invariably you see empty lines executed as commands.

The solution is to run a command like  'dos2unix' on the script:

dos2unix install.od

and make the script executable again:

chmod +x install.od

 
 

Downloads

Number of downloads since
1 September 2009: