
ODBC for Unix Installation Instructions
Driver Installation on OSX
Prerequisites
You will need:
- OSX 10.2 or later; or 10.1 with iODBC installed.
<
http://www.iodbc.org/index.php?page=docs/macosodbcstory/index>
Driver
- Place all files and links in the /opt/minisoft directory. (the libraries should be 755)
cd /
mkdir opt
cd /opt
mkdir minisoft
cd /opt/minisoft
- Append the lines from "drvinst.ini" into the odbcinst.ini file for your system. If
you wish to create this as a User specific driver, add the lines from drvinst.ini to
(~/Library/ODBC/odbcinst.ini). The file for system wide availability is
(/Library/ODBC/odbcinst.ini). If the directory does not exist you may create it. For example:
% mkdir /Library/ODBC
% chmod 755 /Library/ODBC
% touch /Library/ODBC/odbcinst.ini
% chmod 644 /Library/ODBC/odbcinst.ini
% cat /opt/minisoft/drvinst.ini >> /Library/ODBC/odbcinst.ini
- The default location for the ODBCINI file under iODBC is: (~/Library/ODBC/odbc.ini) while the
Driver was created with unixODBC and expects (~/.odbc.ini). Be sure to add the ODBCSYSINI
variable appropriate for the location of the driver installation file. (see
Setting Environment Variables)
% setenv ODBCINI /Library/ODBC/odbc.ini
% setenv ODBCSYSINI /Library/ODBC
or
# export ODBCINI=/Library/ODBC/odbc.ini
# export ODBCSYSINI=/Library/ODBC
- Use "config3kodbc.exe" to set the information from mscard.ini into your odbc.ini file.
The database and password information for your HP3000 are encoded into the odbc.ini file and
cannot be (easily) added with a text editor. This application (config3kodbc.exe) reads a ini file
and encodes the information into the odbc.ini file.
------------------------------------------------
sudo
./config3kodbc.exe -i -u -f mscard.ini
------------------------------------------------
- Edit the file "/Library/ODBC/odbc.ini" to include the
new DSN in the list of "[ODBC Data Sources]"
sudo vi /Library/ODBC/odbc.ini
[ODBC Data Sources]
sys2 = 3kodbc
MSCARD3 = 3kodbc
- Using the integrated ODBC Administrator makes some changes to DSNs easier. Be sure to
"unlock" the application before applying changes. The Minisoft driver requires encoded
passwords that are not readable from the ODBC Administrator.
license.exe
Please report the value from this utility so that a License Number can be generated for your system.
This is a Linux executable. Place it in the directory "/opt/minisoft". When run, it should
display the System ID and System Name:
# /opt/minisoft/license.exe
System ID = [3046425382]
System Name = [Linux 2.4.18-17.8.0 i686]
Use one of the following parameters:
1 - View license information
2 - License a product
5 - Create license file
6 - View license for a product
#