ODBC issue

I am trying to get asterisk to connect to my postgresql database.

I have the database created and created a db user called asterisk. In the O’Reily book I am going through the ODBC set up and I am running into issues.

Here is my problem

bash-3.2$ echo “select 1” | isql -v asterisk-connector
[01000][unixODBC][Driver Manager]Can’t open lib ‘/opt/local/lib/libodbcpsql.so’ : file not found
[ISQL]ERROR: Could not SQLConnect

Here are my files
bash-3.2$ cat /opt/local/etc/odbcinst.ini
[PostgreSQL]
Description=PostgreSQL driver
Driver=/opt/local/lib/libodbcpsql.so
Setup=/opt/local/lib/libodbcpsqlS.so
UsageCount=2

bash-3.2$ cat /opt/local/etc/odbc.ini
[asterisk-connector]
Description=PostgreSQL connection to ‘asterisk’ database
Driver=PostgreSQL
Database=asterisk
Servername=localhost
UserName=asterisk
Password=welcome
Port=5432
Protocol=7.4
ReadOnly=No
RowVersioning=No
ShowSystemTables=No
ShowOidColumn=No
FakeOidIndex=No

bash-3.2$ cat .odbc.ini
[DEFAULT]
Driver=PostgreSQL

[PostgreSQL]
Description=PostgreSQL connection to ‘asterisk’ database
Driver=PostgreSQL
Database=asterisk
Servername=localhost
UserName=asterisk
Password=asterisk
port=5432
Protocol=7.4
ReadOnly=No
RowVersioning=No
ShowSystemTables=No
ShowOidColum=No
FakeOidIndex=No
ConnSettings=

bash-3.2$ ls -l /opt/local/lib/ | grep ‘libodb*’
-rwxr-xr-x 1 root admin 393176 Nov 19 2012 libodbc.2.dylib
-rw-r–r-- 1 root admin 797984 Nov 19 2012 libodbc.a
lrwxr-xr-x 1 root admin 15 Nov 19 2012 libodbc.dylib -> libodbc.2.dylib
-rwxr-xr-x 1 root admin 1015 Nov 19 2012 libodbc.la
-rwxr-xr-x 1 root admin 40660 Nov 19 2012 libodbccr.2.dylib
-rw-r–r-- 1 root admin 82288 Nov 19 2012 libodbccr.a
lrwxr-xr-x 1 root admin 17 Nov 19 2012 libodbccr.dylib -> libodbccr.2.dylib
-rwxr-xr-x 1 root admin 974 Nov 19 2012 libodbccr.la
-rwxr-xr-x 1 root admin 71952 Nov 19 2012 libodbcinst.2.dylib
-rw-r–r-- 1 root admin 173736 Nov 19 2012 libodbcinst.a
lrwxr-xr-x 1 root admin 19 Nov 19 2012 libodbcinst.dylib -> libodbcinst.2.dylib
-rwxr-xr-x 1 root admin 1012 Nov 19 2012 libodbcinst.la

The only thing I can think of is that the book asks for the unixODBC-delev package to be install and that is not available in mac ports not have I been able to find tar file for it. I have only seen a .rpm file. Any one can help??