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

2022-09-05 14:40:49 浏览数 (1)

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

环境: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:

export ICEJ_HOME PATH

#source /etc/profile

#cd ice-3.6.3/java

make && make install

slice2java -v

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

0 人点赞