歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 下安裝 ZeroC ICE 步驟

Ubuntu 下安裝 ZeroC ICE 步驟

日期:2017/2/28 17:09:40   编辑:Linux教程

ICE(Internet Communications Engine)是一個為現實中程序員而寫的中間件平台。作為一個高性能的互聯網通信平台,ICE包含了很多分層的服務和插件(Plug-ins),並且簡單、高效和強大。

ICE當前支持C++、Java、C#、Visual Basic、Python和PHP編程語言,並支持在多種操作系統上運行。更多的操作系統和編程語言將會在以後的發布中支持。

下面詳細介紹在Ubuntu 下安裝 ZeroC ICE 步驟以及下載: http://www.zeroc.com

Ice has dependencies on a number of third-party libraries:

Berkeley DB 4.5.20 configured with --enable-cxx.

If you intend to use Ice for Java with Berkeley DB, you must also
include the option --enable-java.

expat 1.95.7 or 2.0.0

OpenSSL 0.9.7 or later (OpenSSL 0.9.8 or later recommended)

bzip2 1.0.x

Berkeley DB, expat, OpenSSL, and bzip2 are usually included with your
Linux distribution, or you can download them from the following
locations:

Berkeley DB http://www.Oracle.com/database/berkeley-db/index.html
expat http://sourceforge.net/projects/expat/
OpenSSL http://www.openssl.org
bzip2 http://sources.RedHat.com/bzip2

1.下載bzip2-1.0.4.tar.gz

$tar zxvf bzip2-1.0.4.tar.gz
$cd bzip2-1.0.4
$make install

2.下載expat-2.0.1.tar.gz

$tar zxvf expat-2.0.1.tar.gz
$cd expat-2.0.1
$./configure
$sudo make install

3.下載openssl-0.9.8d.tar.gz

$tar zxvf openssl-0.9.8d.tar.gz
$cd openssl-0.9.8d
$./config --prefix=/usr --openssldir=/usr/openssl
注意:prefix為/usr/local/ssl,openssldir默認為/usr/ssl/openssl,需要改為上面的,因為ice的代碼中include的是,默認安裝路徑會找不到。
$ make
$ make test
$ sudo make install

4.下載db-4.6.21.tar.gz

$tar zxvf db-4.6.21.tar.gz
$cd db-4.6.21
$cd build_unix
$../dist/configure --prefix=/usr --enable-cxx
注意:db的默認安裝prefix路徑是/usr/local/BerkeleyDB.4.6,需要改為/usr,否則make Ice時會找不到路徑
$make
$sudo make install

5.下載Ice-3.2.1-bin-rhel-i386.tar.gz

$tar zxvf Ice-3.2.1-bin-rhel-i386.tar.gz
$cd Ice-3.2.1
$vi config/Make.rules #修改prefix為/usr
$make
$sudo make install

另外:RPMs for Berkeley DB 4.5.20 on RHEL 4.4, RHEL 5 and SLES 10 are
available from:

http://www.zeroc.com/download.html

我在ubuntu 7.10下,安裝rpm包錯誤,因此,只能自己編譯安裝。

Copyright © Linux教程網 All Rights Reserved