Weird Can’t open lib ‘/usr/pgsql-9.5/lib/psqlodbcw.so’ : file not found error

I have read a couple of posts on ECN and have found that people experience difficulties when installing Documentum/PostgreSQL build – they get something like:

[dmadmin@docu73dev01 bin]$ dmdbtest -Ddctm_psql -SDCTM_PSQL -Udctm_psql -PLWlW2k0CbEne
Failed to make a database connection using the following data:
   Database Server: DCTM_PSQL
   Database Name  : dctm_psql
   User Name      : dctm_psql
   User Password  : Check either the -P flag on command line or 
                    the password file specified in your server.ini
  Error from database system is:  STATE=01000, CODE=0, MSG=[unixODBC][Driver Manager]Can't open lib '/usr/pgsql-9.5/lib/psqlodbcw.so' : file not found
ERROR(-1)   (system code: -1)
[dmadmin@docu73dev01 bin]$ ls -la /usr/pgsql-9.5/lib/psqlodbcw.so
-rwxr-xr-x 1 root root 436904 Aug 27 14:02 /usr/pgsql-9.5/lib/psqlodbcw.so
[dmadmin@docu73dev01 bin]$ file dmdbtest 
dmdbtest: setuid setgid ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=6a65a8e84e78f9745a5c4ad6e5e695ec30e58b56, not stripped
[dmadmin@docu73dev01 bin]$ file /usr/pgsql-9.5/lib/psqlodbcw.so
/usr/pgsql-9.5/lib/psqlodbcw.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=bde7b12fe740dc03718b62030ba27ad0a1007dce, stripped
[dmadmin@docu73dev01 bin]$ 

i.e. all files exist, architecture is the same, but installation fails, and the best recipe for now is to download docker image from support portal and extract ODBC drivers from that image – good job EMC. More strange thing is I do not experience such difficultiesfollow my hands:

[dmadmin@docu73dev01 bin]$ mv liblber-2.4.so.2 liblber-2.4.so.2.bak
[dmadmin@docu73dev01 bin]$ dmdbtest -Ddctm_psql -SDCTM_PSQL -Udctm_psql -PLWlW2k0CbEne
Database successfully opened.
Test table successfully created.
Test view successfully created.
Test index successfully created.
Insert into table successfully done.
Index successfully dropped.
View successfully dropped.
Database case sensitivity test successfully past. 
Table successfully dropped.
[dmadmin@docu73dev01 bin]$