Install ICE in Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Install Ice
After learning about ICE from the first issue of programmer magazine at the beginning of the year, we have been paying attention to it because it is simple, efficient, and easy to use compared with CORBA. Some time ago, I downloaded Ice 1.x and related documents for research, but it was interrupted for some time due to busy work.
Ice home: http://www.zeroc.com
Work in the past few days is a little easier, a little time, continue to study the version of Ice 2.1.1. In the course of learning, it is inevitable to install. This article is about installation.
In fact, the installation of Ice-2.1.1 is quite simple. For example, on a newer Linux operating system, all the auxiliary software packages required by Ice already exist. If the system you install does not have these software, you can download a third-party software package on the Ice download page, install it, and install it. It is not difficult to install it. The main reason is to check the corresponding readme and install documents of the software.
I installed it on Fedora 3 with expat, openssl, db4.2, and bzip2, so no third-party software is required. The only problem is that db4.2 on Fedora 3 does not have the db C ++ Development Library installed, so you need to re-compile and install the db.
============= STEP 1: install db ================================
The document for installing the database contains instructions in html format in the docs of the db package, which is very simple. After unlocking the tar/zip package of the db:
$ Cd db-ver
$ Cd build_unix
$ ../Dist/configure -- prefix =/usr -- enable-cxx
$ Make
$ Su
# Make install
========= STEP 2: Install the Ice 2.1.1 package ===========================
After you unpack the ice-2.1.1.tar.gz package
$ Cd Ice-1, 2.1.1
$ Vi config/Make. rules # modify prefix to/usr
$ Make
$ Su
# Make install
In this way, Ice is installed.
=========== STEP 3: install IcePy
Because I want to learn python before, and ice also supports the python language, I decided to install the IcePy package. If you only use C ++ for development, IcePy may not be installed. After activating icepy.xx.tar.gz
$ IcePy-2.1.1 cd
$ Vi config/Make. rules
Add a line at the beginning of the file:
ICE_HOME =/usr
Modify prefix =/usr
Then use the root permission
# Ln-s/usr/lib/python2.4/usr/python # different versions of python,/usr/lib/pythonx. x Directory are a bit different
$ Make
$ Su
# Make install
# Ln-s/usr/lib/IcePy. so/usr/lib/python2.4/IcePy. so
Using two ln to establish two connections saves the trouble of setting environment variables when running the Ice python program. Because the Ice Python files are installed in the default directory of python, this is much more convenient.
It comes with a C ++ compilation question:
Since I learned Ice based on the example in the book, The NodeI class in the server chapter of the file server is defined as follows:
Definition, so the g ++ connection always reports an undefined _ adapter error. It takes a while to remember it. The examples in the book do not mention the definition of this thing. If you are a beginner in C ++ or a person who hasn't used C ++ for a long time like me, you can't find the North at the moment.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service