====================================================================== 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 = /lib extension = icephp.so (With the x86_64 distribution, use /lib64 instead of /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.