Difference between revisions of "Solaris Platforms"

From Gramps
Jump to: navigation, search
Line 63: Line 63:
 
Although the GRAMPS 3.0.1 package requires a python version of 2.5 or later.  The Solaris build of python 2.4 works well with GRAMPS 3.0.1 and no issues have been noticed. ''''Note:'''' This change negates the need install a later release of python ;-)
 
Although the GRAMPS 3.0.1 package requires a python version of 2.5 or later.  The Solaris build of python 2.4 works well with GRAMPS 3.0.1 and no issues have been noticed. ''''Note:'''' This change negates the need install a later release of python ;-)
  
Change ''''line 6297'''' of this file to read from:
+
Change ''''line 6297'''' of this file to read:
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
 
to:
 
 
  minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
 
  minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
Change ''''line 6329'''' to read from:
+
Change ''''line 6329'''' to read:
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
 
to:
 
 
  minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
 
  minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
  
 
=====src/gramps.py=====
 
=====src/gramps.py=====
Change ''''line'''' of this from to readm from:
+
Change ''''line 97'''' of this from to readm from:
MIN_PYTHON_VERSION = (2, 5, 0, '', 0)
 
to:
 
 
  MIN_PYTHON_VERSION = (2, 4, 0, '', 0)
 
  MIN_PYTHON_VERSION = (2, 4, 0, '', 0)
  

Revision as of 23:21, 22 June 2008


Solaris Platforms

GRAMPS 3.0.1 has been successfully installed and tested on both the latest releases of Solaris 10 (SPARC platform) and OpenSolaris 2008.05 (X86 platform) by building GRAMPS from source.

Installing Dependencies

Even with the latest releases of Solaris/OpenSolaris a number of missing dependencies need to be resolved before you can install GRAMPS, namely Berkeley DB, Python BSDDB Interface and Python ReportLab.

You will need to install these dependencies before you can move forward and install GRAMPS.

Berkeley DB

  • Download the BSDDB core from www.oracle.com. For the GRAMPS 3.0.1 installation I've used Berkeley DB 4.5.20 (although 4.6/4.7 is available I found a number of db corruptions while using these later releases so I stuck with the trusted 4.5x version).
  • Unpack, build and install
% gtar zxfB db-4.5.20.tar.gz
% cd db-4.5.20/build_unix
% ../dist/configure --prefix=/usr
% gmake

% su
# gmake install

Note: Using the --prefix=/usr on the configure command-line is a must under Solaris, without installing the Berkeley DB in this location Python BSDDB interface fails to install.

Python BSDDB Interface

% gtar zxfB bsddb3-4.5.0.tar.gz
% cd bsddb3-4.5.0
% python setup.py build
Found Berkeley DB 4.5 installation.
  include files in /usr/include
  library files in /usr/lib
  library name is libdb-4.5
  running build
  running build_py
  running build_ext

% su
# python setup.py install

Note: You must download and build a version of the Python BSDDB Interface which supports the version of Berkeley DB installed on your system.

Python ReportLab

  • Download Report 2.1 (latest version at the time of writing), from www.reportlab.org/ftp
  • Unpack, build and install
% gtar zxfB ReportLab_2_1.tgz
% cd reportlab_2_1/reportlab
% python setup.py build

% su
# python setup.py install


Installing GRAMPS

Download & Unpack

  • Download GRAMPS 3.0.1 (latest version at time of writing) from the GRAMPS sorceforge.net page.
  • Unpack
% gtar zxvf gramps-3.0.1.tar.gz
% cd gramps-3.0.1

Prebuild Changes

A small number of changes are needed prior to compiling and installing GRAMPS 3.0.1 on the Solaris platform

configure

Although the GRAMPS 3.0.1 package requires a python version of 2.5 or later. The Solaris build of python 2.4 works well with GRAMPS 3.0.1 and no issues have been noticed. 'Note:' This change negates the need install a later release of python ;-)

Change 'line 6297' of this file to read:

minver = map(int, string.split('2.4', '.')) + [0, 0, 0]

Change 'line 6329' to read:

minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
src/gramps.py

Change 'line 97' of this from to readm from:

MIN_PYTHON_VERSION = (2, 4, 0, , 0)
gramps.sh.in

Unlike other UNIX/Linux versions the default /bin/sh under Solaris is the older bourne shell. In order to allow the script to work we need to modify the first line of this file from sh to ksh (or bash if you prefer):

#! /bin/sh

to:

#!/bin/ksh