./runInstaller : syntax error at line 2


 
Thread Tools Search this Thread
Operating Systems Solaris ./runInstaller : syntax error at line 2
# 8  
Old 04-17-2008
Quote:
Originally Posted by Sunb3
Hi here you can look the script.

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

unset SRCHOME
+ unset SRCHOME
[...]
Could you post the entire output (command + output).
What's the last statement with + at the beginning of the line?
# 9  
Old 04-17-2008
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).
# 10  
Old 04-17-2008
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?
# 11  
Old 04-17-2008
Another shot in the dark: try to replace the binaries (just re-upload them), the current copy may be corrupted.
# 12  
Old 04-18-2008
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
# 13  
Old 04-18-2008
Can you run that command in the meantime ?

Code:
file ./install/runInstaller

# 14  
Old 04-18-2008
Hi, I just do it but the result is the same!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Syntax error at line 24: `(' unexpected

Hi, I am getting an wired error.... the script is running fine when i run it manually... but the same when i try to run in nohup mode, i am getting error if Error: syntax error at line 24: `(' unexpected The above if is the 24th line!!! I dont understand the error... (4 Replies)
Discussion started by: Nithz
4 Replies

2. Shell Programming and Scripting

Receiving error: ./ang.ksh[35]: 0403-057 Syntax error at line 116 : `done' is not expected.

Hi All I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error. #!/bin/ksh #------------------------------------------------------------------------- # File: ang_stdnld.ksh # # Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies

3. Shell Programming and Scripting

Makefile: syntax error at line 1

I am able to 'Make' some of projects's modules using GNU's make except one where it throws me the following error gmake -f Makefile /bin/sh: syntax error at line 1: `if' unexpected gmake: *** Error 2 I am sure it has nothing to do with the Makefile as there is no 'if' in the first... (1 Reply)
Discussion started by: sudsa
1 Replies

4. UNIX for Advanced & Expert Users

sh: syntax error at line 8 : `<<' is not matched.

Hi, I am trying to execute the above attached script. and i am getting the error as syntax error at line 8: `<<' is not matched. While i am trying to run that particular line (cat <<EOF > /tmp/query.sql) independently in the prompt it is running successfully without any error. I am running... (2 Replies)
Discussion started by: satyaatcgi
2 Replies

5. Shell Programming and Scripting

ERROR: ./launch_full_backup.sh[18]: Syntax error at line 28 : `else' is not expected.

Help please! :confused: I have the following error with the following file and the emails are not arriving to the email, any idea please? ERROR: ./launch_full_backup.sh: Syntax error at line 28 : `else' is not expected. FECHA=`date +%d%m%y%H%M`... (2 Replies)
Discussion started by: villenan
2 Replies

6. Shell Programming and Scripting

Syntax error at line 11 : `for' is not matched.

hi , while running this script i am getting below error: Syntax error at line 11 : `for' is not matched. here is program: #! /bin/ksh sqlplus -s << !+! user/password update GR_SUB_SCRIPT_PC set act_del_ind='0'; commit; exit; !+! cd /home/salunke/pvcsfiles/source_files for i in... (5 Replies)
Discussion started by: digambar
5 Replies

7. UNIX for Dummies Questions & Answers

syntax error at line 8: `(' unexpected

Hi I am having a shell script load_data.sh which calls /home/users/project/.profile. When am executing the script, am getting below error: $sh -x bin/load_data.sh null + . /home/users/project/.profile bin/load_data.sh: syntax error at line 8: `(' unexpected The line which is throwing... (1 Reply)
Discussion started by: brijesh.dixit
1 Replies

8. Shell Programming and Scripting

syntax error at line 28: `(' unexpected

hi can anyone pls look into this....shell script... Pls find the error below: > sh -n tmp tmp: syntax error at line 28: `(' unexpected isql -Usa -S$1 -P`grep $1 dbpassword|cut -d ":" -f3` -w2000 -b<<! set nocount on declare @i int declare @dbname char(6) declare @tmp int if... (10 Replies)
Discussion started by: rajashekar.y
10 Replies

9. Programming

sh: syntax error at line 1: `>' unexpected

I compiled C program under SUN OS sparcv9 ...I had a problem related to SIGBUS which has been resolved by adding an option to the CC compiler which is memory alignement option ..-memalign=1i as I remmber ...after running the program I got the below error please let me KNow more details what should... (2 Replies)
Discussion started by: atiato
2 Replies

10. Shell Programming and Scripting

syntax error on line 1, teletype

Hi There, I have a cron script that returns the error: syntax error on line 1, teletype Has any one seen this, know what it is, or know's how to get rid of it? Thanks, Jeremy. (1 Reply)
Discussion started by: KokoPops
1 Replies
Login or Register to Ask a Question