APPX 4.2.9, PostgreSQL, and UnixODBC on RHEL 5/Scientific Linux 5/Oracle Linux 5/!CentOS 5

Overview

This document will demonstrate how to configure APPX 4.2.9 and PostgreSQL on a 64 bit or 32 bit Red Hat 5 based Linux server using 32 bit unixODBC drivers.

64 Bit

Installing PostgreSQL

To install PostgreSQL, use the package manager to install postgresql and postgresql-server.

postgresql.x86_64 : PostgreSQL client programs and libraries.
postgresql-server.x86_64 : The programs needed to create and run a PostgreSQL
                         : server.

Installing UnixODBC

To install unixODBC, install unixODBC.i386 using the package manager. The 32 bit version is needed, so be sure to specify that when installing it.

unixODBC.i386 : A complete ODBC driver manager for Linux.

Installing the ODBC Connector

The ODBC connector might not be included in the package manager by default. If it is, it would be named something like postgresql-odbc.i386. If not, it can be downloaded and installed from the internet. I went to Scientific Linux's website and found the package in the downloads section. You can download it here, but you may want to look on your distribution's website if you're not using Scientific Linux 5.6.

Once the rpm is downloaded, install it with yum to take care of any dependencies automatically. The command is:

yum localinstall path-to-file

Configuring odbc.ini and odbcinst.ini

The odbcinst.ini file must be configured to point to the 32 bit PostgreSQL ODBC Connector driver. In my testing the default configuration was correct.

The odbc.ini file, however, was blank by default. Here is how mine is set up. You'll need to fill in your servername, username, password, and port, along with any other information that may need to be changed to match your system.

[root@slinux ~]# cat /etc/odbc.ini
[postgresql]
Description        = postgresql
Driver             = postgresql
Trace              = Yes
TraceFile          = sql.log
Database           = test
Servername         = 
Username           = 
Password           = 
Port               = 
Protocol           = 6.4
ReadOnly           = No
RowVersioning      = No
ShowSystemTables   = No
ShowOidColumn      = No
FakeOidIndex       = No
ConnSettings       =
[root@slinux ~]#

Configuring appx.env

The appx.env file has a line beginning with APPX_ODBC_LIB, which points to the MySQL UnixODBC Connector driver. It can be remarked out. APPX should not have any trouble locating the driver without it.

#APPX_ODBC_LIB=/usr/lib/libmyodbc5.so
Edit | Attach | Watch | Print version | History: r26 | r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r11 - 2011-07-20 - ChrisBrower
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback