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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
======================================================================
The Internet Communications Engine
======================================================================
Ice is a modern alternative to object middleware such as CORBA or
COM/DCOM/COM+. It is easy to learn, yet provides a powerful network
infrastructure for demanding technical applications. It features an
object-oriented specification language, easy to use C++, Java, Python,
PHP, C#, and Visual Basic mappings, a highly efficient protocol,
asynchronous method invocation and dispatch, dynamic transport
plug-ins, TCP/IP and UDP/IP support, SSL-based security, a firewall
solution, and much more.
Ice is available under the terms of the GNU General Public License
(GPL) (see LICENSE file). Commercial licenses are available for
customers who wish to use Ice with proprietary products. Please
contact sales@zeroc.com for more information about licensing Ice.
======================================================================
About this distribution
======================================================================
This distribution is a binary release of Ice @ver@ for Linux and
includes the following components:
- The Ice runtime, including executables for the Ice services, HTML
documentation, and Slice files.
- Run time libraries for C++, Java, Python, PHP, and C# (Mono). These
libraries enable you to execute Ice applications.
- Tools and libraries for developing Ice applications.
======================================================================
Binary compatibility
======================================================================
Patch releases of Ice are binary compatible. For example, version 3.0.1
is compatible with 3.0.0, so you can run applications compiled with
3.0.0 with the 3.0.1 runtime without having to recompile.
With the binary installers, simply uninstall the previous version of
Ice and install the new one. Already deployed applications that were
compiled against the 3.0.0 runtime will automatically use the 3.0.1
runtime.
Note: Under Mono, binary compatibility currently does not work due to
issues with Mono. Until this problem in Mono is fixed, you cannot
run 3.0.0 applications against the 3.0.1 runtime.
======================================================================
Requirements
======================================================================
This binary distribution was compiled on Linux Fedora Core 4 (FC4)
using FC4's default current C++ compiler, GCC 4.0.1.
This distribution depends on a number of third-party libraries:
- Berkeley DB 4.3.27
- expat 1.95
- OpenSSL 0.9.7
- bzip2 1.0.2
- readline 5.0
- ncurses 5.4
- libgcc 4.0.1
- libstdc++ 4.0.1
All of these libraries are included with your FC4 distribution in the
following RPMs:
Berkeley DB db4, db4-utils, db4-java
expat expat
OpenSSL openssl, openssl-devel
bzip2 bzip2-libs
readline readline
ncurses ncurses
libgcc libgcc
libstdc++ libstdc++
If you prefer to install the third-party libraries yourself, be aware
that Berkeley DB must be configured with --enable-cxx and
--enable-java.
Java
----
Ice for Java requires J2SE 1.4.2 or 1.5.0. RPMs can be obtained from
JavaSoft at http://www.javasoft.com/j2se.
Python
------
The Ice extension for Python included in this distribution requires
Python 2.4.1. The Python runtime RPM is python-2.4.1-2. If you prefer
to use a different version of Python, you can download the Ice for
Python source code from the ZeroC web site at
http://www.zeroc.com/download.html
C#
--
Ice for C# requires Mono 1.1.9 or later. The following RPM can be
downloaded at http://www.mono-project.com/Downloads:
mono-core-1.1.9-1.novell.i586.rpm
PHP
---
The Ice extension for PHP included in this distribution requires
PHP 5.0.4. You can obtain a PHP source code distribution from
http://www.php.net.
======================================================================
Setting up your environment to use Ice
======================================================================
General
-------
The discussion below assumes you have defined the ICE_HOME variable
with the directory of your Ice installation.
In order to use Ice services and tools such as Slice translators, you
need to add $ICE_HOME/bin to your PATH and $ICE_HOME/lib to your
LD_LIBRARY_PATH, as shown in the bash commands below:
$ export PATH=$ICE_HOME/bin:$PATH
$ export LD_LIBRARY_PATH=$ICE_HOME/lib:$LD_LIBRARY_PATH
With the x86_64 distribution, libraries are installed in
$ICE_HOME/lib64; if you use this distribution, set your
LD_LIBRARY_PATH as follows:
$ export LD_LIBRARY_PATH=$ICE_HOME/lib64:$LD_LIBRARY_PATH
C++
---
When compiling Ice for C++ programs, you must pass $ICE_HOME/include
to the compiler with the -I option, and $ICE_HOME/lib with the -L
option. Furthermore, a C++ program needs to link with at least libIce
and libIceUtil, so a typical link command would look like this:
$ c++ -o myprogram myprogram.o -L$ICE_HOME/lib -lIce -lIceUtil
Use -L$ICE_HOME/lib64 instead of -L$ICE_HOME/lib for 64-bit builds.
Additional libraries are necessary if you are using an Ice service
such as IceGrid or Glacier2.
Java
----
To use Ice for Java, you must add $ICE_HOME/lib/Ice.jar to your
CLASSPATH, as shown below:
$ export CLASSPATH=$ICE_HOME/lib/Ice.jar:$CLASSPATH
If you plan to use Freeze for persistence, you must also add the
Berkeley DB JAR file (db.jar) to your CLASSPATH:
$ export CLASSPATH=$DB_HOME/lib/db.jar:$CLASSPATH
In addition, the JVM requires that the directory containing the
Berkeley DB libraries be listed in java.library.path, therefore you
must add this directory to your LD_LIBRARY_PATH.
Python
------
To use Ice for Python, the PYTHONPATH environment variable must be
updated so that the interpreter can load the Ice extension and
supporting Python files:
$ export PYTHONPATH=$ICE_HOME/python:$PYTHONPATH
C#/Mono
-------
You can update MONO_PATH with the directory containing the Ice for C#
runtime libraries, as the following bash command shows:
$ export MONO_PATH=$ICE_HOME/bin:$MONO_PATH
Alternatively, you can add the libraries to the GAC yourself using a
command like this:
$ gacutil -i bin/icecs.dll
The instructions for running the demos assume that you have configured
your kernel to automatically execute the Mono interpreter. To do this,
run the following commands as root (replace /usr/bin/mono with the
location of your mono interpreter):
if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then
/sbin/modprobe binfmt_misc mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
fi
if [ -e /proc/sys/fs/binfmt_misc/register ]; then
echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
else
echo "No binfmt_misc support" exit 1
fi
If you don't want to do this you need to run the executable with
mono. For example,
$ mono server.exe
PHP
---
The Ice extension for PHP must be added to your PHP configuration
by editing php.ini and adding the following lines:
extension_dir = <ICE_HOME>/lib
extension = icephp.so
(With the x86_64 distribution, use <ICE_HOME>/lib64 instead of
<ICE_HOME>/lib)
At run time, the PHP interpreter requires the Ice shared libraries
as well as the Slice preprocessor ($ICE_HOME/bin/icecpp), therefore
these components must be in a standard location or accessible via the
PATH and LD_LIBRARY_PATH environment variables.
You can verify that the Ice extension is installed properly by
examining the output of the "php -m" command, or by calling the
phpinfo() function from a script.
======================================================================
Using the IceGrid Administrative Console
======================================================================
A Java-based graphical tool for administering IceGrid applications
is included in this distribution. The Java archive file is installed
as
$ICE_HOME/lib/IceGridGUI.jar
With a suitable Java installation, you can execute the application
using the following command:
$ java -jar IceGridGUI.jar
======================================================================
Demos and documentation
======================================================================
Sample programs are provided in the Ice-@ver@-demos.tar.gz package,
which can be downloaded from the ZeroC web site at
http://www.zeroc.com/download.html
Please refer to the README.DEMOS file included in that package for
more information.
See doc/README.html for information on the documentation included with
this distribution.
|