Using the AIX Binary Distribution
This page provides important information for users of the Ice binary distribution for AIX. You can obtain this distribution at the ZeroC web site.
On this page:
Overview of the Ice Binary Distribution for AIX
RPM Packages
ZeroC provides the following RPMs packages for AIX:
RPM | Description |
---|---|
ice-all-devel | Meta package that installs all development packages |
ice-all-runtime | Meta package that installs all run-time packages, servers, and utilities |
glacier2 | Glacier2 service |
icebox | IceBox server for C++ |
icebridge | IceBridge service |
icegrid | IceGrid service |
icepatch2 | IcePatch2 executable |
ice-compilers | Slice compilers, such as slice2cpp , slice2java and slice2py |
ice-repo | The yum repo file for Ice |
| Slice files |
ice-utils | Utilities necessary for administering Ice services |
libice-c++-devel | C++ header files |
libice3.7-c++ | C++ run-time libraries |
libicestorm3.7 | IceStorm service |
ZeroC also supplies RPMs for the following third-party packages:
RPM | Description |
---|---|
expat-static-devel | A stream oriented XML parser library |
| Admin tools for LMDB (statically linked) |
| Header file and static library for LMDB |
| Static library for the MCPP C++ preprocessor |
Installing the AIX Binary Distribution
Follow the instructions below to install Ice on AIX:
1. Add the Ice repositories to your system:
sudo dnf install https://zeroc.com/download/ice/3.7/aix7.2/ice-repo-3.7.aix7.2.noarch.rpm
2. Install Ice:
sudo dnf install ice-all-runtime ice-all-devel
Refer to the package summary above if you would like to install fewer packages.
The Ice RPM packages for AIX were all built with IBM XL C/C++ and have no dependency on the GCC runtime.
Setting Up your AIX Environment to Use Ice
After installing Ice, read the relevant language-specific sections below to learn how to configure your environment and start programming with Ice.
Ice RPM packages are installed in /opt/freeware
like other RPM packages on AIX. The installation creates symbol links in /usr/bin
for programs like slice2cpp
and icegridregistry
. However, the installation does not create symbolic links in /usr
for Ice headers files and libraries.
C++
When compiling and linking Ice for C++ programs, you must use xlC_r
and enable RTTI. A typical compile command would look like this:
xlC_r -q64 -qrtti -qstaticinline -I/opt/freeware/include -c myprogram.cpp
When linking a program you must link with at least the Ice library. A typical link command would look like this:
xlC_r -q64 -qrtti -qstaticinline -o myprogram myprogram.o -L/opt/freeware/lib -lIce
Additional libraries are necessary if you are using an Ice service such as IceGrid or Glacier2.
Using the Sample Programs on AIX
Sample programs for all programming languages are available in a separate ice-demos GitHub repository. Simply clone this repository:
git clone -b 3.7 https://github.com/zeroc-ice/ice-demos.git cd ice-demos