IBM Support

make_db2_db.sh fails with "bad interpreter: No such file or directory" error

Troubleshooting


Problem

Error running make_db2_db.sh supplied with TADDM 7.2.1 FP4: /support/bin/make_db2_db.sh: /bin/sh^M: bad interpreter: No such file or directory

Symptom

Running the make_db2_db.sh script will result in:

<dist>/support/bin/make_db2_db.sh: /bin/sh^M: bad interpreter: No such file or directory

Cause

The version of make_db2_db.sh in 7.2.1.4 contains invalid newline characters. This has been reported and corrected in
APAR IV39547

Diagnosing The Problem

This can be verified using the head command to output the first line in
the script file.

<< 7.2.1.4 >>
-bash-4.1# head -1 make_db2_db.sh | od -c | head -1
0000000 # ! / b i n / s h \r \n <--- \r\n is
Windows newline

<< 7.2.1.3 >>
-bash-4.1# head -1 make_db2_db.sh | od -c | head -1
0000000 # ! / b i n / s h \n <--- \n is Linux
newline

Resolving The Problem

If available, apply a fixpack containing the fix for APAR IV39547. Or, run dos2unix to remove the Windows end of line characters.

[{"Product":{"code":"SSPLFC","label":"Tivoli Application Dependency Discovery Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.2.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

taddm;5724n5500

Document Information

Modified date:
17 June 2018

UID

swg21634166