Kiyoshi Sawada - 2010-02-03

Hi,

I referenced to ldl's "create GT.M 5.3-003 for CentOS 5.2 (2009-04-18)", and I was able to build GT.M V5.4-000_x8664 (2010-02-02) for CentOS 5.4.
reference URL:  https://sourceforge.net/projects/fis-gtm/forums/forum/34584/topic/3203593
Thanks LD Landis.

Cheers,
- Kiyoshi Sawada (K.S) from Japan, Nagoya City


"pre-requisites" to building GT.M into /opt/lsb-gtm/V5.4000_i686

CentOS 5.4 Linux 2.6.18-164.11.1.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux

Install required yum and rpm :
( ) sudo yum install tcsh.x86_64 (already there)
( ) sudo yum install make.x86_64 (not found, but 3.80+ is ok, CentOS 5.4 is 3.81)
( ) sudo yum install gcc.x86_64  (CentOS 5.4 is 4.1.2)
( ) sudo yum install gcc-c++.x86_64
( ) sudo yum install openssl.x86_64 openssl-devel.x86_64
( ) sudo yum install zlib-devel.x86_64
( ) sudo yum install ncurses.x86_64 ncurses-devel.x86_64
( ) sudo yum install icu.x86_64 libicu.x86_64 libicu-devel.x86_64 (CentOS 5.4 is 3.6)
( ) sudo yum install boost.x86_64 boost-devel.x86_64   (CentOS 5.4 is 1.33)
( ) sudo rpm -ivh pth-2.0.7-6.el5.x86_64.rpm
( ) sudo rpm -ivh gpgme-1.1.8-1.el5.rf.x86_64.rpm
( ) sudo rpm -ivh gpgme-devel-1.1.8-1.el5.rf.x86_64.rpm

Load GT.M "pro":
( ) sudo su -
( ) mkdir -p /opt/lsb-gtm/
( ) cd /opt/lsb-gtm
( ) mkdir x
( ) wget  http://downloads.sourceforge.net/project/fis-gtm/GT.M-x86-Linux/V5.4-000/gtm_V54000_linux_i686_pro.tar.gz
( ) tar xfz gtm_V540000_linux_i686_pro.tar.gz
( ) ./configure
   Used "bin" user
   Did not restrict groups that can run GT.M
   Install into /opt/lsb-gtm/5.4-000_i686
   Installing GT.M….
   Should unicode support be installed? (y or n) y
   Should an ICU version other than the default be used? (y or n) n
( ) cd ..
( ) rm -rf x

Load GT.M Source Code:
( ) mkdir gtm-5.4-000_src
( ) cd gtm-5.4-000_src
( ) wget http://downloads.sourceforge.net/project/fis-gtm/GT.M-x86-Linux-src/V5.4-000/gtm_V54000_linux_i686_src.tar.gz
( ) tar xzovf gtm_V54000_linux_i686_src.tar.gz

Build GT.M:
( ) make -version
GNU Make 3.81
This program built for i686-redhat-linux-gnu
( ) tcsh
( ) ./mk_gtm.sh >& mk_gtm.log


mk_gtm.sh

#!/bin/tcsh
setenv LANG C
setenv gtm_curpro /opt/lsb-gtm/V5.4000_i686
setenv gtm_exe $gtm_curpro
setenv gtm_tools `pwd`/sr_linux
setenv gtm_inc `pwd`/sr_linux
setenv OBJECT_MODE 64
setenv gtm_icu_version `icu-config -version`
setenv gtm_version_change 1
setenv HOSTOS Linux
source sr_unix/gtm_env.csh
#make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=dbg gtm_ver=`pwd` clean
make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux gtm_ver=`pwd` clean
echo "done cleaning -K.S."
#make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=dbg gtm_ver=`pwd`
make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux gtm_ver=`pwd`
echo "done compiling -K.S."
#make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=dbg gtm_ver=`pwd` package
make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux gtm_ver=`pwd` package
echo "done packaging -ldl"


-
$ setenv HOSTOS Linux
# Dummy to avoid errors. Error is "HOSTOS: Undefined variable" on ../sr_unix/mkutf8dir.csh

-  Ubuntu users must define 'distro'
$ setenv distro ubuntu

-  By default the build procedure will build 32 bit version of
GT.M on a x86_64 bit machine.
If you intend to build 64 bit version of GT.M on a x86_64 bit machine you
have to explicitly set the environment variable 'OBJECT_MODE' to '64'
$ setenv OBJECT_MODE 64

- Define 'gtm_version_change' and execute gtm_env.csh
$ setenv gtm_version_change 1
$ source sr_unix/gtm_env.csh

4. Building GT.M -