Linux:ice Construction

Source: Internet
Author: User

Yum Install gcc gcc-c++ glibc-headers-y
Mkdir/usr/local/ice/bzip2-pv
Tar XF thirdparty-sources-3.5.1.tar.gz
CD thirdparty-sources-3.5.1 && ls
1, installation 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, Installation BerkeleyDB:

TAR-ZXF db-5.3.21.nc.tar.gz
 #cd db-5.3.21.NC/build_unix #../dist/configure --prefix=/usr/local/ice/db --enable-cxx --enable-java #make && make install

3, installation bzip2:

TAR-ZXF 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, Installation expat:

TAR-ZXF expat-2.2.1.tar.bz2
#cd expat-2.2.1#./configure --prefix=/usr/local/ice/expat #make && make install

5. Installing OpenSSL:

Unzip Openssl-master.zip
#cd openssl-master#./config  --prefix=/usr/local/ice/openssl enable-shared  -fPIC#make && make install

6, build lib64 to each dependent library of Lib soft connection (add environment variable, let program can recognize)
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/
7, Installation Ice-3.6.3

TAR-ZXVF ice-3.6.3.tar.gz
  #cd ice-3.6.3/cpp#vi config/make.rules//edit make.rules file # 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/l ocal/ice/db expat_home? =/usr/local/ice/expat openssl_home? =/usr/local/ice/openssl MCPP_HOME? =/U     Sr/local/ice/mcpp#make && make Install#vi/etc/profile//Set environment variables for Ice-3.6.3 icej_home=/usr/local/ice/ice-3.6.3 Path= $ICEJ _home/bin: $PATH export icej_home path#source/etc/profile #cd ice-3.6.3/javamake && make INS Tall  

#遇到的问题:
1, compile CPP error, add parameter/usr/local/src/ice/ice-3.6.3/cpp/config/make.rules.linux
Baselibs =-liceutil-lpthread-lrt-liconv
2, compile Java error, cannot find Db.jar, in compiling berkeleydb add parameter--enable-java
3, compile Java error,/usr/local/src/ice/ice-3.6.3/cpp/bin/slice2java command failed:1
The experiment was written in the wrong way, causing some libraries not to find

Linux:ice Construction

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.