linux下如何启动ice服务器,linux: ICE搭建

环境:JDK1.8

yum install gcc gcc-c++ glibc-headers -y

yum groupinstall "Development Tools" -y

yum update -y

mkdir /usr/local/ice/bzip2 -pv

tar xf ThirdParty-Sources-3.5.1.tar.gz

cd ThirdParty-Sources-3.5.1 && ls

1、安装mcpp :

tar -zxvf mcpp-2.7.2.tar.gz

#cd mcpp-2.7.2

#./configure --prefix=/usr/local/ice/mcpp CFLAGS=-fPIC -enable-mcpplib -disable-shared

#make && make install

2、安装 BerkeleyDB:

tar -xf db-5.1.19.tar.gz

#cd db-5.1.19/build_unix

#../dist/configure --prefix=/usr/local/ice/db --enable-cxx --enable-java

#make && make install

3、安装bzip2:

tar -xf bzip2-1.0.6.tar.gz

#cd bzip2-1.0.6

#vi Makefile //编辑Makefile,

1)将其中的PREFIX修改成 /usr/local/ice/bzip2

2)在其中的CFLAGS参数的值后添加 -fPIC

#make && make install

4、安装expat:

tar -xf expat-2.2.1.tar.bz2

#cd expat-2.2.1

#./configure --prefix=/usr/local/ice/expat

#make && make install

5、安装openssl:

unzip openssl-master.zip

#cd openssl-master

#./config --prefix=/usr/local/ice/openssl enable-shared -fPIC

#make && make install

6、建立 lib64 到各依赖库的lib软连接(添加环境变量,让程序可以识别)

export PATH="$PATH :/usr/local/ice/bzip2/bin:/usr/local/ice/bzip2/lib"

export PATH="$PATH :/usr/local/ice/db/bin:/usr/local/ice/db/lib"

export PATH="$PATH :/usr/local/ice/expat/bin:/usr/local/ice/expat/lib"

export PATH="$PATH :/usr/local/ice/mcpp/bin:/usr/local/ice/mcpp/lib"

export PATH="$PATH :/usr/local/ice/openssl/bin:/usr/local/ice/openssl/lib"

ln -s /usr/local/ice/mcpp/lib//usr/lib/

ln -s /usr/local/ice/db/lib/ /usr/lib/

ln -s /usr/local/ice/bzip2/lib//usr/lib/

ln -s /usr/local/ice/expat/lib/ /usr/lib/

ln -s /usr/local/ice/openssl/lib/* /usr/lib/

ln -s /usr/local/ice/mcpp/lib /usr/local/ice/mcpp/lib64

ln -s /usr/local/ice/db/lib /usr/local/ice/db/lib64

ln -s /usr/local/ice/bzip2/lib /usr/local/ice/bzip2/lib64

ln -s /usr/local/ice/expat/lib /usr/local/ice/expat/lib64

ln -s /usr/local/ice/openssl/lib /usr/local/ice/openssl/lib64

7、安装ice-3.6.3

tar -xf ice-3.6.3.tar.gz

#cd ice-3.6.3/cpp

#vi config/Make.rules // 编辑Make.rules文件

#prefix ?= /opt/ice-$(VERSION)

prefix ?= /usr/local/ice/ice-3.6.3

#embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)

embedded_runpath_prefix ?= /usr/local/ice/ice-3.6.3

BZIP2_HOME ?= /usr/local/ice/bzip2

DB_HOME ?= /usr/local/ice/db

EXPAT_HOME ?= /usr/local/ice/expat

OPENSSL_HOME ?= /usr/local/ice/openssl

MCPP_HOME ?= /usr/local/ice/mcpp

#make && make install

#vi /etc/profile //设置ice-3.6.3的环境变量

ICEJ_HOME=/usr/local/ice/ice-3.6.3

PATH=$ICEJ_HOME/bin:$ICEJ_HOME/lib64:$PATH

export ICEJ_HOME PATH

#source /etc/profile

#cd ice-3.6.3/java

make && make install

slice2java -v

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值