Troubleshooting
Problem
Error running make_db2_db.sh supplied with TADDM 7.2.1 FP4:
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 Synonym
taddm;5724n5500
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21634166