summaryrefslogtreecommitdiff
path: root/cpp/INSTALL.HP-UX
blob: 515e927ec1a4be0a24fee00dd637cc22faa4cf6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
======================================================================
Requirements
======================================================================


Operating System
----------------

HP-UX 11i (11.11) on PA-RISC.

You also need the "HP-UX Strong Random Number Generator", available
for free from http://software.hp.com.


C++ compiler
------------

- HP aC++ A.03.37
  
More recent versions of aC++ are likely to work as well.


C compiler
----------

- HP C/ANSI C compiler (cc).


Third-party libraries
---------------------

- Berkeley DB 4.2.52 or 4.3.21 with C++ support enabled, and built
  with a C++ compiler compatible with the one you are using. The
  Berkeley DB source distribution can be downloaded from
  http://www.sleepycat.com
  
  We recommend that you configure and build Berkeley DB with:

  $ export CXXOPTS="-AA -mt"
  $ export CCOPTS="-mt"
  $ ../dist/configure --enable-cxx
  (plus --prefix=<dir> and/or --enable-java if you like)
  $ gmake

  For 64 bit builds, use:

  $ export CXXOPTS="-AA +DD64 -mt"
  $ export CCOPTS="+DD64 -mt"
  $ ../dist/configure --enable-cxx 
  (plus --prefix=<dir> and/or --enable-java if you like)
  $ gmake
 
  Note that Ice for Java is not compatible with version 4.3.21,
  therefore if you intend to use Ice for Java with Berkeley DB,
  you must use version 4.2.52 and the option --enable-java.

- OpenSSL 0.9.7c, which can be downloaded from http://www.openssl.org

  We do not recommend to use the binary distribution available from
  the "Software Porting And Archive Centre for HP-UX" as it depends on
  the GCC runtime.

  A recommended configuration is:

  ./Configure hpux-parisc2-cc shared
  (and --prefix=<dir> if you like)

  For 64 bit builds, a recommended configuration is:

  ./Configure hpux64-parisc2-cc shared
  (and --prefix=<dir> if you like)

- expat 1.9x, which can be downloaded from
  http://sourceforge.net/projects/expat.

  For 32 bit builds, you can also use the binary distribution from the
  "Software Porting And Archive Centre for HP-UX",
  http://hpux.cs.utah.edu.

- bzip2 1.0, which can be downloaded from the "Software Porting And
  Archive Centre for HP-UX", http://hpux.cs.utah.edu. For 32 bit
  builds, you can also use the binary distribution from the "Software
  Porting And Archive Centre for HP-UX".


GNU Make 3.80
-------------

GNU Make 3.80 is required to build Ice on HP-UX. You can download GNU
Make from the "Software Porting And Archive Centre for HP-UX",
http://hpux.cs.utah.edu.


Python 2.2 or 2.3
-----------------

To run the automated test suite, you will need Python 2.2 or 2.3. If
you have no interest in running the test scripts, Python is not
required.

You can download Python from http://hpux.cs.utah.edu.


======================================================================
Compilation and Testing
======================================================================

Extract the Ice archive in any directory you like (for example, in
your home directory):

$ gunzip -c Ice-<version>.tar.gz | tar xvf -

Change the working directory to Ice-<version>:

$ cd Ice-<version>

Edit the file config/Make.rules according to the comments in this
file. Make sure that the paths for the third-party libraries are set
correctly if they are not installed in the default location /usr/lib
and /usr/include.

Now you're ready to build Ice:

$ gmake

This will build the Ice core library, all add-ons, all tests, and all
examples. 

After a successful build, you can run the test suite, provided that 
you installed Python:

$ gmake test

This is equivalent to:

$ python allTests.py

If everything worked out, you should see lots of "ok". In case of a
failure, the tests abort with "failed".

If you want to try out any of the demos, make sure to add "bin" to
PATH and "lib" to SHLIB_PATH or LD_LIBRARY_PATH (for 64 bit
builds):

$ export PATH=`pwd`/bin:$PATH
$ export SHLIB_PATH=`pwd`/lib:$SHLIB_PATH
$ export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH


======================================================================
64 bit builds
======================================================================

To build Ice in 64 bit mode, you need to:

- Obtain or build all the third party dependencies, and put the 64 bit
  libraries in the "lib/pa20_64" directories. For example put Berkeley
  DB 64 bit libraries in $DB_HOME/lib/pa20_64.

- Set the environment variable LP64 to yes, e.g.:
  $ export LP64=yes

- Build and test as described above.


======================================================================
Installation
======================================================================

Simply run "gmake install". This will install Ice in the "prefix"
directory specified in the file Make.rules.

After installation, make sure that the <prefix>/bin directory is in
your PATH, and the <prefix>/lib directory is in your SHLIB_PATH. When
compiling Ice programs, you must also make sure to pass the location
of the <prefix>/include directory to the compiler with the -I option,
and the location of the <prefix>/lib directory with the -L option.

If you built in 64 bit mode, the libraries are installed in
<prefix>/lib/pa20_64 and the programs are installed in
<prefix>/bin/pa20_64. Other files are identical for 32 and 64 bit.