- libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm
- libxslt-1.1.28-5.el7.x86_64.rpm
- pgdg-redhat95-9.5-2.noarch.rpm
- postgresql95-9.5.5-1PGDG.rhel7.x86_64.rpm
- postgresql95-contrib-9.5.5-1PGDG.rhel7.x86_64.rpm
- postgresql95-devel-9.5.5-1PGDG.rhel7.x86_64.rpm
- postgresql95-libs-9.5.5-1PGDG.rhel7.x86_64.rpm
- postgresql95-odbc-09.05.0400-1PGDG.rhel7.x86_64.rpm
- postgresql95-server-9.5.5-1PGDG.rhel7.x86_64.rpm
- unixODBC-2.3.1-11.el7.x86_64.rpm
配置ODBC数据源创建软链接
[root@localhost ~]# ln -sf /usr/pgsql-9.5/bin/pg_config /usr/bin/pg_config
[root@localhost ~]# ln -sf /usr/lib64/libodbcpsqlS.so /usr/lib/libodbcpsqlS.so
[root@localhost ~]# ln -sf /usr/pgsql-9.5/lib/psqlodbcw.so /usr/lib64/psqlodbcw.so
[root@localhost ~]# ln -sf /usr/pgsql-9.5/lib/psqlodbcw.so /usr/lib/psqlodbcw.so
创建/etc/odbc.ini
- [freeswitch]
- Driver=PostgreSQL
- Database=freeswitch
- Servername=127.0.0.1
- Port=5432
ODBC数据源测试:
isql freeswitch freeswitch freeswitch
shell自动安装
01-16 04:22