./runInstaller : syntax error at line 2

Hi all,

I've a problem with oracle10.1.0.2 installation on Solaris 10 (I already know this is possible) but when I run "./runInstaller" command from CD I read "syntax error at line 2" followed by several lines (ex. \200\201\203\206...ect).

Can you help me please? It is very urgent!

It could be due to the fact you may be running an installer built for the SPARC architecture on x86, or the opposite.

No, I 'm sure that I'm working on proper architecture. So I think there is another problem.

Change the first line from:

#!/bin/sh

to

#!/bin/sh -xv

Re-run the installer and post the output using code tags.

Post also the output of:

isainfo -kv
file runInstaller

Hi here you can look the script.

#!/bin/sh -xv
# The environment variable $SRCHOME cannot be set during the installation

unset SRCHOME
+ unset SRCHOME

CMDDIR=`dirname $0`

if [ "$CMDDIR" = "." ];
then
CMDDIR=`pwd`;

fi

# Replace relative path with fully qualified path.

if [ ! "`echo $CMDDIR|grep '^/'`" ];
then
CMDDIR=`pwd`/$CMDDIR;

fi

if [ x${PATH} != x ] ;
then
PATH=/usr/bin:/usr/ccs/bin:$PATH:$CMDDIR/install
export PATH

else
PATH=/usr/bin:/usr/ccs/bin:$CMDDIR/install
export PATH

fi

if [ x${LD_LIBRARY_PATH} != x ] ;

then
LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=/usr/lib
export LD_LIBRARY_PATH

fi

$CMDDIR/install/runInstaller $*

N.B. the output is the following:

runInstaller: syntax error at line 2: `_`aceijkmnprtuvxyz|~\200\201\203\206\210\211\214\215\216\222\223\224\227\231\232\233\234\235\237\241\244\245\246\247\250\251\252\253\254\255\257\261\263\265^D^F^G^H^J^K^N^P^R^T^U^Z^_*,.016>DGHILSTVWYZbdfghloqsw{}^?\202\204\205\207\212\213\217\220\221\225\226\230\236\240\242\243\256\260\262\264^A`G^A^A^K^R^Q\220\230^AD^C^KR' unexpected

thank you!

# isainfo -kv
64-bit sparcv9 kernel modules
# file runInstaller
runInstaller: executable shell script

Could you post the entire output (command + output).
What's the last statement with + at the beginning of the line?

The difference is precious little.
Well the command + output overture is the following:

#./runInstaller
#!/bin/sh -xv
# The environment variable $SRCHOME cannot be set during the installation

unset SRCHOME
+ unset SRCHOME

CMDDIR=`dirname $0`

if [ "$CMDDIR" = "." ];
then
CMDDIR=`pwd`;

fi

# Replace relative path with fully qualified path.

if [ ! "`echo $CMDDIR|grep '^/'`" ];
then
CMDDIR=`pwd`/$CMDDIR;

fi

if [ x${PATH} != x ] ;
then
PATH=/usr/bin:/usr/ccs/bin:$PATH:$CMDDIR/install
export PATH

else
PATH=/usr/bin:/usr/ccs/bin:$CMDDIR/install
export PATH

fi

if [ x${LD_LIBRARY_PATH} != x ] ;

then
LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=/usr/lib
export LD_LIBRARY_PATH

fi

$CMDDIR/install/runInstaller $*

# runInstaller: syntax error at line 2: ``aceijkmnprtuvxyz|~\200\201\203\206\210\211\214\215\216\222\223\224\227\231\232\233\234\235\237\24 1\244\245\246\247\250\251\252\253\254\255\257\261\263\265^D^F^G^H^J^K^N^P^R^T^U^Z^*,.016>DGHILSTVWY Zbdfghloqsw{}^?\202\204\205\207\212\213\217\220\221\225\226\230\236\240\242\243\256\260\262\264^A`G^ A^A^K^R^Q\220\230^AD^C^KR' unexpected

N.B. the first line is the command and all following test is the output (in the output is present the script test also).

Strange, could you try to comment the entire script (make a copy)
and then try to uncomment and run line by line to see what's the code that raises the error?

Another shot in the dark: try to replace the binaries (just re-upload them), the current copy may be corrupted.

I attempted to accomplish this procedure but I don't have any positive result.
I think the problem is the Oracle file transfer, infact I moved via FTP the Oracle completed package and maybe I moved it without "binary trasfer mode". In this case I think to have lost some package information, so I'll attempt to the "binary transfer mode" via FTP.

Thank you so much

Can you run that command in the meantime ?

file ./install/runInstaller

Hi, I just do it but the result is the same!

So...the output of file ./install/runInstaller command is this:

./install/runInstaller : data

Here is the problem. This file should be either a shell script or a binary executable for your architecture. It is not even an executable for x86 or whatever.

I 'm not sure of this, becouse in the Oracle folder I've "runInstaller" file which is a shell script and "install" folder in which I've another "runInstaller" file which isn't a shell script.
I suppose to be in the Oracle path.

Infact in the first case I've this output:

#file runInstaller
runInstaller : executable shell script

In the second case I've this output:

#file ./install/runInstaller
./install/runInstaller : data

I attempted to run both "runInstaller" command but I had the same result.

I hope you understand me

There is no doubt about it.

Either the install/runInstaller is corrupted or designed for a very uncommon operating system.

Hi all, I find the solution.
After FTP the package was not corrupted but the error was in "cpio" exstraction procedure. Infact I utilized these options "-icdumVb" instead of "-icdvb".
Thank you for all .

Thank you for sharing the solution with us.