db2_install do not have write permission on the directory or file
if you install on mounted fs ensure it's not mounted with the nosuid and noexec parameters.
db2 binaries require suid file permissions.
remove v10.5 directory if you created it manually
and set chmod 755 on parent directory