[ISQL]ERROR: Could not SQLConnect

hi
i have successfully install asterisk_gui, asterisk, and database postgresql
they are working fine.
and i have install ODBC drivers

and it is
when i type

odbcinst -q -d

i get
[PostgreSQL]

In /etc/odbc.ini i write


[asterisk-connector]
Description = PostgreSQL connection to ‘asterisk’ database
Driver = PostgreSQL
Database = asterisk
Servername = localhost
UserName = shiv
Password =
Port = 5432
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
ConnSettings =


when i type

su - shiv

$ echo “select 1” | isql -v asterisk-connector

i got error

[01000][unixODBC][Driver Manager]Can’t open lib ‘/usr/lib/libodbcpsql.so’ : /usr/lib/libodbcpsql.so: wrong ELF class: ELFCLASS32
[ISQL]ERROR: Could not SQLConnect

what i mistake
please help me

Regards:
Shiv kumar
+919953956681