linux下如何启动ice服务器,Linux下ICE的安装[通俗易懂]

linux下如何启动ice服务器,Linux下ICE的安装[通俗易懂]ICE在Linux下的完整编译安装安装平台要求:最好用gcc4.x版编译ICE,在Slackware下发现gcc3.3.6和gcc3.4.6都无法编译通过为了方便管理,将ICE相关的软件都安装到/usr/local/ICE-3.3.0/目录下首先安装第三方包:ThirdParty-Sources-3.3.0.tar.gz解压ThirdParty-Sources-3.3.0.tar.gz#c…

大家好,又见面了,我是你们的朋友全栈君。

ICE在Linux下的完整编译安装

安装平台要求:最好用gcc 4.x版编译ICE,在Slackware下发现gcc3.3.6和gcc3.4.6都无法编译通过

为了方便管理,将ICE相关的软件都安装到/usr/local/ICE-3.3.0/目录下

首先 安装第三方包:ThirdParty-Sources-3.3.0.tar.gz

解压 ThirdParty-Sources-3.3.0.tar.gz

# cd ThirdParty-Sources-3.3.0

1)mcpp  is a C/C++ preprocessor

——

解压 mcpp-2.7.2.tar.gz

# cd mcpp-2.7.2

# ./configure –prefix=/usr/local/ICE-3.3.0/mcpp-2.7.2/ CFLAGS=-fPIC -enable-mcpplib -disable-shared

# make

# make install

2)Berkeley DB  是一个高性能的,嵌入数据库编程库,和C语言, C++, Java, Perl, Python, Tcl以及其他很多语言都有绑定。

——–

解压 db-4.6.21.NC.tar.gz

# cd db-4.6.21.NC

# cd build_unix

# ../dist/configure –prefix=/usr/local/ICE-3.3.0/BerkeleyDB.4.6/ -enable-cxx

# make

# make install

3)bzip2 是 Julian Seward 开发并按照自由软件/开源软件协议发布的数据压缩算法及程序

——–

解压 bzip2-1.0.5.tar.gz

# cd bzip2-1.0.5

修改Makefile,将PREFIX指向/usr/local/ICE-3.3.0/bzip2-1.0.5

# make

# make install

4) expat 是一个 XML parsing C library

——–

解压 expat-2.0.1.tar.gz

# cd expat-2.0.1

# ./configure –prefix=/usr/local/ICE-3.3.0/expat-2.0.1/

# make

# make install

5) openssl 是 Secure Socket Layer (SSL) binary and related cryptographic tools

——–

解压 openssl-0.9.8g.tar.gz

# cd openssl-0.9.8g

# ./config –prefix=/usr/local/ICE-3.3.0/openssl

# make

# make install

现在正式安装 Ice-3.3.0.tar.gz

——–

解压 Ice-3.3.0.tar.gz

1) 编译 cpp版本:

# cd Ice-3.3.0/cpp

# vi config/Make.rules

…## Select an installation base directory. The directory will be created# if it does not exist.## prefix ?= /opt/Ice-$(VERSION)prefix ?= /usr/local/ICE-3.3.0/Ice-$(VERSION)## The “root directory” for runpath embedded in executables. Can be unset# to avoid adding a runpath to Ice executables.## embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)embedded_runpath_prefix ?= /usr/local/ICE-3.3.0/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)

…##

# If libbzip2 is not installed in a standard location where the

# compiler can find it, set BZIP2_HOME to the bzip2 installation

# directory.

#

BZIP2_HOME             ?=/usr/local/ICE-3.3.0/bzip2-1.0.5

# If Berkeley DB is not installed in a standard location where the# compiler can find it, set DB_HOME to the Berkeley DB installation# directory.##DB_HOME ?= /opt/dbDB_HOME ?= /usr/local/ICE-3.3.0/BerkeleyDB.4.6## If expat is not installed in a standard location where the compiler# can find it, set EXPAT_HOME to the expat installation directory.##EXPAT_HOME ?= /opt/expatEXPAT_HOME ?= /usr/local/ICE-3.3.0/expat-2.0.1## If OpenSSL is not installed in a standard location where the# compiler can find it, set OPENSSL_HOME to the OpenSSL installation# directory.##OPENSSL_HOME ?= /opt/opensslOPENSSL_HOME ?= /usr/local/ICE-3.3.0/openssl## If Mcpp is not installed in a standard location where the compiler# can find it, set MCPP_HOME to the Mcpp installation directory.##MCPP_HOME ?= /opt/mcppMCPP_HOME ?= /usr/local/ICE-3.3.0/mcpp-2.7.2

特别注意: cpp/config/Make.rules的相关第三方库的路径

# make

# make install

2)编译python  版本

# cd Ice-3.3.0/py

# vi config/Make.rules

修改方法参考cpp部分描述

# make

# make install

设置ICE环境变量

#vi /etc/profile

export PYTHONPATH=/usr/local/ICE-3.3.0/Ice-3.3/python/:

export ICE_HOME=/usr/local/ICE-3.3.0/Ice-3.3

export PATH=$PATH:$ICE_HOME/bin

export LD_LIBRARY_PATH=$ICE_HOME/lib

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC ICE_HOME

#source /etc/profile

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/139706.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • maskrcnn训练步骤_神经网络如何预测

    maskrcnn训练步骤_神经网络如何预测今天我们来说一下,如何使用自己训练出来的Mask_RCNN模型,或是官方自己的模型权重来进行预测:该Mask_RCNN版本基于:Python3,Keras,TensorFlow,我使用的具体版本为:Python3.6.3TensorFlow1.7Keras2.1.5tensorflow安装:https://blog.csdn.net/qq_15969343/article/details/7………

    2022年9月27日
    3
  • 人体表面积的计算公式_体表面积快速计算公式

    人体表面积的计算公式_体表面积快速计算公式体表面积(BSA)即是人体表面积。由于形状的特殊性,直接测量非常复杂。多年来,人们总结出许多计算公式用于估算体表面积。使用这些公式,身体表面积将以平方米计算出来。常用体表面积计算公式:1)Mosteller公式:一个最经常使用的公式,发布于1987年。BSA(m²)=([身高(cm)x体重(kg)]/3600)^½。2)DuBois与DuBois公式(1,注):BSA(…

    2022年4月19日
    485
  • 用Pandas 处理大数据的3种超级方法

    用Pandas 处理大数据的3种超级方法原文链接:3simplewaystohandlelargedatawithPandas作者|GeorgeSeif译者|jojoa易上手,文档丰富的Pandas已经成为时下最火的数据处理库。此外,Pandas数据处理能力也一流。其实无论你使用什么库,大量的数据处理起来往往回遇到新的挑战。数据处理时,往往会遇到没有足够内存(RAM)这个硬件问题。企业往往…

    2022年5月24日
    112
  • strstr函数用法_malloc函数的用法举例

    strstr函数用法_malloc函数的用法举例strstr编辑strstr(str1,str2)函数用于判断字符串str2是否是str1的子串。如果是,则该函数返回str2在str1中首次出现的地址;否则,返回NULL。C语言函数编辑

    2022年8月2日
    5
  • 精灵图定位

    精灵图定位.searchem{position:absolute;top:8px;right:90px;width:20px;height:20px;background:url(…/images/sprite-search.png)no-repeat;}.searchem:hover{background-position:-30px0;/*精灵图第一个值是X轴的…

    2022年5月7日
    82
  • 从K近邻算法、距离度量谈到KD树、SIFT+BBF算法

    从K近邻算法、距离度量谈到KD树、SIFT+BBF算法从K近邻算法、距离度量谈到KD树、SIFT+BBF算法前言前两日,在微博上说:“到今天为止,我至少亏欠了3篇文章待写:1、KD树;2、神经网络;3、编程艺术第28章。你看到,blog内的文章与你于别处所见的任何都不同。于是,等啊等,等一台电脑,只好等待..”。得益于田,借了我一台电脑(借他电脑的时候,我连表示感谢,他说“能找到工作全靠你的博客,这点儿小忙还说,不地道”,有的时候,稍许感受到

    2022年6月6日
    23

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号