Building ingres on ubuntu
From Ingres Community Wiki
Contents |
HOWTO build Ingres 2006 on 64-bit Ubuntu
History:
05-May-2008 (Paul Mason)
Created.
Introduction
The current Ingres build process is slightly biased toward 32-bit RPM-based Linux distros. This HOWTO explains how to over come the snags building on a popular non-RPM distro, Ubuntu.
Generally the current source (as of r32) "just works" on 32-bit Ubuntu. You may find the list of additional packages helpful. Essentially the process for the 32-bit build is steps 1, 2 (without the 32-bit support packages),4 and 6.
Step by Step Guide
1. Install Ubuntu
This HOWTO was tested with the server version of Hardy Heron for x86_64 i.e. ubuntu-8.04-server-amd64.iso, and Gutsy Gibbon for i386 i.e. ubuntu-7.10-server-i386.iso
During install, you're prompted to create a user, it's convenient to create the "ingres" user at this point.
2. Install additional packages
The following additional packges were needed.
- gcc
- g++
- bison
- flex
- libncurses5-dev
- make
- libkrb5-dev
- libxerces27-dev
- ftjam
- pax
- subversion
32-bit support packages:
- gcc-multilib
- g++-multilib
Install the packages using
sudo apt-get install <package name>
3. Install 32-bit xerces libraries
Unfortunately the Ubuntu repositories don't have the 32-bit version of libxerces27 so you have to install them manually. You can either build it from source or install a pre-compiled version.
3.1 to build from source
Follow the process described here but instead of copying to $XERCESCROOT/lib/lp32, copy the libraries to /usr/lib32 - which is the location for 32-bit libraries on Ubuntu
sudo cp -p $XERCESCROOT/lib/lib* /usr/lib32
3.2 to install a pre-compiled version
- grab the archive (currently this link works, you may need to check it)
wget http://archive.apache.org/dist/xml/xerces-c/Xerces-C_2_7_0/binaries/\ xerces-c_2_7_0-redhat_AS4-gcc_343.tar.gz
- untar
tar zxf xerces-c_2_7_0-redhat_AS4-gcc_343.tar.gz
- copy libraries to /usr/lib32
sudo cp -P xerces-c-redhat_AS4-gcc_343/lib/* /usr/lib32
4. Check out the ingres source code
svn co http://code.ingres.com/ingres/main ~/ingsrc
5. Disable build of GTK/RPM Installer
The standard build includes a non-essential graphical installer based on RPM. This is disabled for Debian-based OSes (such as Ubuntu) for 32-bit Linux but not 64-bit.
To fix this apply patch from ticket #134 or simply edit src/tools/port/jam/Jamdefs.a64_lnx changing
BUILD_GTK_INST = TRUE ;
to
BUILD_GTK_INST = FALSE ;
This is fixed as of r33.
6. Run the build
cd ~/ingsrc ./runbuild
