Neoview ODBC Drivers Manual (R2.2)
HP-UX(IA-64) 64–bit: tar -xvf hpodbc_vvv_HPUX_I_64_pkg.tar
HP-UX(PA-RISC): tar -xvf hpodbc_vvv_HPUX_P_pkg.tar
IBM AIX®:tar -xvf hpodbc_vvv_AIX_pkg.tar
9. Install the product:
cd PkgTmp
./install.sh
NOTE: Except for the sample file, the install.sh script saves a copy (.SAV) of your
previous installation files, if they exist.
10. Accept the terms of the license agreement.
11. Enter a directory for the library file, or press Enter to use the default directory (/usr/lib).
12. Enter a directory for the data source template file (MXODSN file), or press Enter to use the
default directory (/etc/hpodbc).
13. Enter a directory for the include files, or press Enter to use the default directory
(/usr/include/hpodbc).
14. Enter a directory for the sample, or press Enter to use the default directory
(/etc/hpodbc/sample).
Setting Up the Client Environment
If you selected default options during installation, ensure that:
• The include (*.h) files are in the /usr/include/hpodbc directory.
• An MXODSN file is in the /etc/hpodbcdirectory, if you are using libhpodbc.
NOTE: By default, the MXODSN file in the package will be installed as
/etc/hpodbc/MXODSN.template. Rename it to MXODSN, and make necessary changes
to the file before using the drivers.
The drivers expect the MXODSN file to be present in either the default location (/etc/hpodbc)
or the current working directory (CWD) of the application.
or
The third party driver manager is properly configured, if you are using libhpodbc_drvr.
• The library is located in the /usr/lib directory.
If you selected non default locations during installation, ensure that the files are installed in the
directories that you specified in Steps 6 to 9 in “Installing or Reinstalling HP Neoview ODBC
Drivers for Linux, HP-UX, and IBM AIX®”.
Running the Sample Program
This sample assumes you are using the library that includes both the driver and driver manager.
The examples after each step assume that you have default installation directories.
1. Move to the directory where you installed the sample program:
cd /etc/hpodbc/sample
2. Compile the sample program:
NOTE: All drivers, other than the driver for HP-UX(IA-64) 64–bit and the x86–64 Linux
driver, are 32–bit drivers. Therefore, applications must be compiled accordingly.
• On Linux:
Setting Up the Client Environment 37