2009-06-30 13:53:15 +00:00
|
|
|
Build Notes
|
|
|
|
|
2009-07-16 03:39:16 +00:00
|
|
|
Due to problems building the lastest version 2.2.14 on AIX, had to
|
|
|
|
Download from ftp://ftp.unixodbc.org/pub/unixODBC/
|
|
|
|
unixODBC-2.2.15pre.tar
|
|
|
|
|
|
|
|
gunzip
|
|
|
|
tar -xvf
|
|
|
|
'cd' to the directory containing the package's source code
|
|
|
|
export CC=xlc_r
|
|
|
|
export CCC=xlC_r
|
|
|
|
./configure --enable-gui=no --enable-drivers=no --enable-iconv=no --sysconfdir=/etc
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
|
|
|
The .a files in the lib need to converted into .so files using ar found
|
|
|
|
in binutils:
|
|
|
|
cd /usr/local/lib
|
|
|
|
/opt/freeware/bin/ar -x libodbc.a
|
|
|
|
/opt/freeware/bin/ar -x libodbccr.a
|
|
|
|
/opt/freeware/bin/ar -x libodbcinst.a
|
|
|
|
|
|
|
|
|
|
|
|
Create the tar and gz files:
|
|
|
|
cd /tmp
|
|
|
|
mkdir -p /tmp/odbc
|
|
|
|
cd /tmp/odbc
|
|
|
|
mkdir -p etc
|
|
|
|
mkdir usr/local/bin
|
|
|
|
mkdir usr/local/lib
|
|
|
|
cp /etc/o*ini etc/.
|
|
|
|
cp /usr/local/lib/libodbc*[a1] usr/local/lib/.
|
|
|
|
cp /usr/local/bin/*sql usr/local/bin/.
|
|
|
|
cp /usr/local/bin/odbc* usr/local/bin/.
|
|
|
|
cp /usr/local/bin/dltest usr/local/bin/.
|
|
|
|
tar -cvf ../unixODBC-2.2.15pre-aix-ppc.tar *
|
|
|
|
cd ..
|
|
|
|
gzip unixODBC-2.2.15pre-aix-ppc.tar
|
2009-06-30 13:53:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copy the gz file to the SOURCES directory.
|
2009-07-16 03:39:16 +00:00
|
|
|
cp unixODBC-2.2.15pre-aix-ppc.tar /opt/freeware/src/packages/SOURCES
|
2009-06-30 13:53:15 +00:00
|
|
|
|
|
|
|
Remove any old RPMs
|
|
|
|
rm -f /opt/freeware/src/packages/SRPMS/unixODBC*rpm /opt/freeware/src/packages/RPMS/ppc/unixODBC*rpm
|
|
|
|
|
|
|
|
Use the spec file provided to build the RPM. (The spec file specifies
|
|
|
|
this particular unixODBC gz file, so it will have to be modified if you
|
|
|
|
want to use a different version etc.
|
|
|
|
|
|
|
|
rpm -ba unixODBC.spec
|
|
|
|
|
|
|
|
Creates:
|
2009-07-16 17:42:22 +00:00
|
|
|
/opt/freeware/src/packages/RPMS/ppc/unixODBC-2.2.15-32bit.aix5.3.ppc.rpm
|