Difference between revisions of "Solaris Platforms"

From Gramps
Jump to: navigation, search
(opensolaris.org (now redirects to Java.net closure page))
 
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Documentation]][[Category:Developers/Packaging]]
+
{{stub}}
GRAMPS 3.0.1 has been successfully installed on both Solaris SPARC and X86 platforms by building from source, no known packages exist for installation. The latest release of the OpenSolaris X86 is available [http://opensolaris.org here].
+
GRAMPS 3.2.0 has been successfully installed and tested on Solaris 11 Express (SPARC platform) by building GRAMPS from source. ( [http://gramps.1791082.n4.nabble.com/Gramps-3-2-0-and-Solaris-11-Express-td3697457.html Building Gramps on Solaris 11 Express] & [http://gramps.1791082.n4.nabble.com/Gramps-3-2-0-and-Solaris-11-Express-td3697457.html], By Matt Keenan
  
* '''Install dependencies'''. Even with the latest releases of OpenSolaris a number of missing dependencies need to be resolved before you can install GRAMPS ''Berkeley DB'', ''Python BSDDB Interface'', ''Python ReportLab''. You will need to install these dependencies before you can move forward and install GRAMPS.
+
GRAMPS 3.0.1 has been successfully installed and tested on both the latest releases of Solaris 10 (SPARC platform) and [https://en.wikipedia.org/wiki/OpenSolaris OpenSolaris] 2008.05 (X86 platform) by building GRAMPS from source.
** '''Installing Berkeley DB'''. Download the latest BSDDB core from [http://www.oracle.com/technology/software/products/berkeley-db/db Oracle].
 
'''Note:''' the ''--prefix=/usr'' is a must under Solaris, without it being listed at this location the Python BSDDB interface fails to locate the db location.
 
  
  % gtar zxfB db-4.7.25.tar.gz
+
===Installing Dependencies===
  % cd db-4.7.25/build_unix
+
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 [http://www.oracle.com/technology/software/products/berkeley-db/db 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
 
  % ../dist/configure --prefix=/usr
 
  % gmake
 
  % gmake
 +
 
  % su
 
  % su
 
  # gmake install
 
  # gmake install
** '''Installing Python BSDDB Interface'''. Download bsddb3-4.7.0.tar.gz (version at the time of writing), from [http://pybsddb.sourceforge.net]
+
'''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.
  % gtar zxfB bsddb3-4.7.0.tar.gz
+
 
  % cd bsddb3-4.7.0
+
====Python BSDDB Interface====
 +
* Download bsddb3-4.5.0.tar.gz from [http://pybsddb.sourceforge.net pybsddb.sourceforce.net].
 +
* Unpack, build and install
 +
  % gtar zxfB bsddb3-4.5.0.tar.gz
 +
  % cd bsddb3-4.5.0
 
  % python setup.py build
 
  % 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
 
   
 
   
  this should find your installed bsddb3 returning something like:
+
  % 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 (do not need on 3.2 and later)====
 +
*    Download Report 2.1 (latest version at the time of writing), from [http://www.reportlab.org/ftp www.reportlab.org/ftp]
 +
* Unpack, build and install
 +
% gtar zxfB ReportLab_2_1.tgz
 +
% cd reportlab_2_1/reportlab
 +
% python setup.py build
 
   
 
   
    Found BerkeleyDB 4.5 installation.
+
% su
      include files in /usr/local/BerkeleyDB.4.5/include
+
# python setup.py install
      library files in /usr/local/BerkeleyDB.4.5/lib
+
 
  library name is libdb-4.5
+
===Installing GRAMPS===
 +
====Download & Unpack====
 +
* Download GRAMPS 3.0.1 (latest version at time of writing) from the GRAMPS [http://sourceforge.net/projects/gramps/files/Stable/ sourceforge.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''' to read:
 +
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 to read ksh (or bash if you prefer):
 +
#!/bin/ksh
 +
 
 +
=====src/gen/db/base.py=====
 +
change '''line 39''' to read:
 +
from bsddb3 import db
 +
 
 +
=====src/gen/db/dbdir.py=====
 +
change '''line 39''' to read:
 +
from bsddb3 import dbshelve, db
 +
 
 +
=====src/Editors/_EditFamily.py=====
 +
change '''line 28''' to read:
 +
from bsddb3 import db as bsddb_db
  
Finally install Python BSDDB Interface
+
=====src/GrampsDbUtils/_GrampsBSDDB.py=====
 +
change '''line 38''' to read:
 +
from bsddb3 import dbshelve, db
  
  % su
+
=====src/GrampsLogger/_ErrorReportAssistant.py=====
  # python setup.py install
+
change '''line 5''' to read:
 +
  import sys, os, bsddb3
 +
change '''line 102''' to read:
 +
  str(bsddb3.__version__),
  
 +
=====src/plugins/Leak.py=====
 +
change '''line 34''' to read:
 +
from bsddb3.db import DBError
  
 +
====Configure GRAMPS====
 +
To configure GRAMPS all you need to do is run the configure script:
 +
./configure
 +
Othe roptions to configure that are useful include telling the script to setup GRAMPS to install in a directory of your  choosing instead of the default (/usr/local):
 +
./configure --prefix=/your/dest/dir
 +
====Compile GRAMPS====
 +
To compile GRAMPS simple issue make.
 +
make
 +
====Testing the Build====
 +
To test the GRAMPS build, simply run:
 +
python ./src/gramps.py
  
* '''Configure GRAMPS'''. All you need to do is run the configure script:<code>
+
====Run Install====
  ./configure</code>
+
Finally, type make to install into your desired location
If you have built Gnome or Python with <code>iconv</code> libraries other than what Solaris comes with (the GNU version for example), you can specify to GRAMPS where to find them:<code>
+
make install
  ICONV=/dir/to/iconv ./configure</code>
 
Other options to configure that are useful include telling it to setup GRAMPS to install in a directory of your choosing instead of the default:<code>
 
  ./configure --prefix=/your/dest/dir</code>
 
  
* '''make and install''' <code>
+
[[Category:Documentation]]
  make
+
[[Category:Developers/Packaging]]
  make install</code>
 

Latest revision as of 04:29, 1 July 2021

Gramps-notes.png

This article's content is incomplete or a placeholder stub.
Please update or expand this section.


GRAMPS 3.2.0 has been successfully installed and tested on Solaris 11 Express (SPARC platform) by building GRAMPS from source. ( Building Gramps on Solaris 11 Express & [1], By Matt Keenan

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 (do not need on 3.2 and later)

  • 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 sourceforge.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 to read:

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 to read ksh (or bash if you prefer):

#!/bin/ksh
src/gen/db/base.py

change line 39 to read:

from bsddb3 import db
src/gen/db/dbdir.py

change line 39 to read:

from bsddb3 import dbshelve, db
src/Editors/_EditFamily.py

change line 28 to read:

from bsddb3 import db as bsddb_db
src/GrampsDbUtils/_GrampsBSDDB.py

change line 38 to read:

from bsddb3 import dbshelve, db
src/GrampsLogger/_ErrorReportAssistant.py

change line 5 to read:

import sys, os, bsddb3

change line 102 to read:

str(bsddb3.__version__),
src/plugins/Leak.py

change line 34 to read:

from bsddb3.db import DBError

Configure GRAMPS

To configure GRAMPS all you need to do is run the configure script:

./configure

Othe roptions to configure that are useful include telling the script to setup GRAMPS to install in a directory of your choosing instead of the default (/usr/local):

./configure --prefix=/your/dest/dir

Compile GRAMPS

To compile GRAMPS simple issue make.

make

Testing the Build

To test the GRAMPS build, simply run:

python ./src/gramps.py

Run Install

Finally, type make to install into your desired location

make install