Ice Distributed File Management system--ice Environment Construction (second)

Source: Internet
Author: User

On the previous blog, we talked about the basic understanding of the ice middleware.

Next we tell about the development environment.

The process is divided into three main steps:

  Install GCC-4.4.6, install ICE-3.4.2, install QT-4.7.3.

(This article is based on Linux ICE-3.4.2 installation, if you have GCC installed (version higher than GCC-4.4.6 also), please install ice directly)

First, install GCC:

(gcc versions browse Address: http://ftp.gnu.org/gnu/gcc/)

Generally, Linux-based operating systems have GCC installed by default. If you say that your computer does not have, please Baidu a ha, can solve your problem.

Haha, I am not here to explain the tardiness.

  

Second, installation ICE-3.4.2

  Install third-party packages: thirdparty-sources-3.4.2

Unzip the installation package and enter:
# tar ZXVF thirdparty-sources-3.4.2.tar.gz
# CD thirdparty-sources-3.4.2

Installing Mcpp
# tar ZXVF mcpp-2.7.2.tar.gz
# CD mcpp-2.7.2
#./configure--prefix=/usr/local/ice-3.4.2/mcpp-2.7.2/cflags=-fpic-enable-mcpplib-disable-shared
# make
# make Install

Installing Berkeley DB

  Berkeley DB is a high-performance, embedded database programming library with bindings for C languages, C + +, Java, Perl, Python, Tcl, and many other languages.

# CD:   # tar zxvf db-4.8.30.nc.tar.gz  # CD db-4.8.30.nc/build_unix/  #.. /dist/configure--prefix=/usr/local/ice-3.4.2/berkeleydb.4.6/-enable-cxx  # make  # make install

Installation of bzip2 bzip2 is a data compression algorithm and program developed by Julian Seward and published in accordance with the free software/open source software protocol.

# CD: /.. /

# tar ZXVF bzip2-1.0.6.tar.gz

# CD bzip2-1.0.6 Modify makefile, point prefix to/usr/local/ice-3.4.2/bzip2-1.0.6

# make

# make Install

install expat
expat is an XML parsing C library.
# CD ...
# tar zxvf expat-2.0.1.tar.gz
# CD expat-2.0.1
#/configure--prefix=/ USR/LOCAL/ICE-3.4.2/EXPAT-2.0.1/
# make
Span style= "FONT-SIZE:14PX; Font-family: Song body "> # make install

Installing OpenSSL
OpenSSL is Secure Socket Layer (SSL) binary and relatedcryptographic tools.
# CD:
# tar ZXVF openssl-0.9.8r.tar.gz
# CD OPENSSL-0.9.8R
#./config--prefix=/usr/local/ice-3.4.2/openssl
# make
# make Install

The POD document had syntax errors At/usr/bin/pod2man line 69 appears. Make. " Error.

Workaround: Enter the following command:

#rm/usr/bin/pod2man

  

  Installing ICE-3.4.2
# tar ZXVF ice-3.4.2.tar.gz
# CD Ice-3.4.2/cpp
# Vim Config/make.rules

Modify the installation package path (change the original item):
Prefix? =/usr/local/ice-3.4.2/ice-$ (VERSION)
Embedded_runpath_prefix =/usr/local/ice-3.4.2/ice-$ (version_major). $ (Version_minor)
Bzip2_home? =/usr/local/ice-3.4.2/bzip2-1.0.6
Db_home? =/usr/local/ice-3.4.2/berkeleydb.4.6
Expat_home? =/usr/local/ice-3.4.2/expat-2.0.1
Openssl_home? =/usr/local/ice-3.4.2/openssl
Mcpp_home? =/usr/local/ice-3.4.2/mcpp-2.7.2
# make
# make Install

To set the ICE environment variable:
# Vi/etc/profile

Last side join:
Export ice_home=/usr/local/ice-3.4.2/ice-3.4.2
Export path= $PATH: $ICE _home/bin
Export ld_library_path= $ICE _home/lib:$ Ld_library_path
Export PATH USER LOGNAME mailhostname histsize INPUTRC ice_home

To make an environment variable effective:
#source/etc/profile

Whether the test was successful:
#icegridnode--version
#icegridadmin –version

Catalog Demo test (CPP)

Enter the ICE-3.4.2 directory after decompression:
#cd Cpp/demo/ice/hello

To run the server:
#./server

If there are fewer errors in the library, solve:
#vim/etc/ld.so.conf
Second line join:/usr/local/ice-3.4.2/ice-3.4.2/lib Save exit
#/sbin/ldconfig–v

Test success:
#./server
#./client
Client sends data to server side successfully!

Third, the installation of Qt.

(I will not explain this to everyone.)

Four, haha so we put the basic environment to build up.

Happy start as the code of the porter.    Started writing the code. Ha ha.

(In the installation, there are problems can be commented on the area to leave your questions, I will reply to the ha.) I hope you have a lot of communication. )

Ice Distributed File Management system--ice Environment Construction (second)

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.