Install ICE3.4.2 on Ubuntu

Source: Internet
Author: User
Before installing Ice3.4.2, you should download and install its dependent libraries. After the installation failed, the installation was finally completed. Two words. The specific process is as follows: 1. download Third-party packages and Ice source files: http://www.zeroc.com/download.html (Official download page) download the source file: Ice-3.4.2.tar.gz in the SourceDistributions column; before Third-PartySourceCode installs Ice3.4.2, you should download and install its dependent libraries. After the installation failed, the installation was finally completed. Two words. The specific process is as follows:

1.Download third-party packages and Ice source files:Http://www.zeroc.com/download.html(Official download page)

Download the Source file in the Source Distributions column:Ice-3.4.2.tar.gzInThird-Party Source CodeSelectThirdParty-Sources-3.4.2.tar.gzDownload a third-party compressed package. 

2.Install third-party dependent Libraries

ExtractThirdParty-Sources-3.4.2.tar.gz:Tar-xzvf ThirdParty-Sources-3.4.2.tar.gz.

2.1) install Berkeley DB

$ Tar zxvf db-4.8.30.NC.tar.gz

$ D db-4.8.30.NC/build_unix

$ ../Dist/configure -- prefix =/usr -- enable-cxx

(Note: The default installation prefix path for db is/usr/local/BerkeleyDB.4.6, which must be changed to/usr; otherwise, the path cannot be found during make Ice)
$ Make # compile
$ Sudo make install # install

2.2) install bzip2-1.0.6.tar.gz

$ Tar zxvf bzip2-1.0.6.tar.gz

$ Bzip2-1.0.6 cd

$ Make install

2.3) install expat-2.0.1.tar.gz

$ Tar zxvf expat-2.0.1.tar.gz
$ Expat-2.0.1 cd
$./Configure
$ Sudo make install

2.4)install openssl-0.9.8d.tar.gz

$ Tar zxvf openssl-0.9.8d.tar.gz
$ Openssl-0.9.8d cd
$./Config -- prefix =/usr -- openssldir =/usr/openssl
(Note: The prefix is/usr/local/ssl, and the default openssldir is/usr/ssl/openssl. You need to change it to the above one. Otherwise, the default installation path will not be found .)
$ Make
$ Make test
$ Sudo make install

2.5) install mcpp

$Sudo apt-get install libmcpp-dev

 

3. Install "Ice-3.4.2"

$ Tar zxvf Ice-3.4.2.tar.gz
$ Cd Ice-3.4.2/cpp

$ Export LD_LIBRARY_PATH =/opt/Ice-3.4.2/lib

$ Make
$ Sudo make install

 

4. Some installation errors and solutions:

4.1) Error message:/usr/lib. ld: Error: cannot find-lmcpp ---> solution: it should be because mcpp was not successfully installed. Just reinstall mcpp.

4.2) error message: fatal error: db_cxx.h: No such file or directory --> solution: the db-4.8.3 was not installed successfully before, reinstall it again

4.3) after the Ice is installed, the following error occurs: error while loading shared libraries: libIce. so.34: cannot open shared object file: No such file or directory --> solution: Some directory configurations of Ice are incorrect; use the command export LD_LIBRARY_PATH =/opt/Ice-3.4.2/lib to export the dynamic link library directory again.

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.