Informix Error -1005
-1005 Your specified termcap file cannot be read.
The TERMCAP environment variable specifies a file that cannot be opened. Either it does not exist, or your account does not have operating-system permissions to read it. Check the environment variable and the file that it names.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1005 fires when the TERMCAP environment variable points to a file the program can't open —
per the official guidance, either the file doesn't exist or it lacks the read permission needed.
TERMCAPpointing to a nonexistent file, per the official guidance — a typo in the path, or a file that was moved/removed.TERMCAPpointing to a file the current user lacks read permission on, per the official guidance — a permissions issue rather than a missing-file one.
Solutions / Resolution
- Verify the file named by
TERMCAPactually exists, per the official guidance. - Verify the current user has read permission on that file, per the official guidance, and correct the permissions or path as needed.
Examples
Checking the TERMCAP file
$ echo "$TERMCAP"
/usr/local/etc/termcap
$ ls -l "$TERMCAP"
ls: /usr/local/etc/termcap: No such file or directory
$ export TERMCAP=/etc/termcap
Diagnostic Checks
- Check the path named by
TERMCAPfor existence and read permission.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1005 in this set yet.
TERMCAP points to a file that's either missing or unreadable — verify the path and its
permissions.