How to resolve bad interpreter error

Hi,

Iam trying to run a gmake command and have the latest version of Gnu in my redhat linux system.

I need to execute the following steps;

---> chmod +x utils/*
---> ./utils/AllCodeManagerFix
---> gmake LINUX

Iam able to do the chmod command but when I run the second command I get the following error:

[root@137 opentv-sdk]# ./utils/AllCodeManagerFix
bash: ./utils/AllCodeManagerFix: /usr/bin/csh: bad interpreter: No such file or directory

I have logged in as a root and set 777 permission to the file AllcodeManagerFix.
but still not able to run the file.
Please let me what needs to be done to run the steps correctly.

Regards,
vijaya.

does /usr/bin/csh exist on your system? Where did you transfer the files from and what method did you use(ftp/sftp/etc..)?

please post the output of these commands in code tags

head -n 1 AllCodeManagerFix 
head -n 1 AllCodeManagerFix |od -cx

Hi,

Using yum I had installed csh in /usr/bin

When I give which csh it gives
/bin/csh

Output of the commands given by you:

[root@137 utils]# head -n 1 AllCodeManagerFix
#!/usr/bin/csh

[root@137 utils]# head -n 1 AllCodeManagerFix |od -cx
0000000 # ! / u s r / b i n / c s h \n \0
2123 752f 7273 622f 6e69 632f 6873 000a
0000017

After instaling csh I also tried giving csh ./AllCodeManager and now it throws error
WARNING : no CodeManagerFix in SCCS

Does this show that the command has run or is it a error.

After this command when i give gmake Linux:

root@137 SCCS]# gmake LINUX
gmake: *** No rule to make target `LINUX'. Stop.

Please let me know what needs to be done.

Regards,
vijaya.