In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "what is ice under linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "what does ice under linux refer to?"
Ice under linux is the abbreviation of "The Internet Communications Engine", which means Internet communication engine. It is an object-oriented middleware that can build distributed applications with minimum cost.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is ice under linux?
ICE is ZEROC's open source communication protocol product, its full name is: The Internet Communications Engine, translated into Chinese is the Internet communication engine, is an object-oriented middleware, so that we can build distributed applications at the least cost.
ICE allows us to focus on the development of application logic, which handles all the underlying network interface programming, so that we don't have to consider such details: opening a network connection, serialization and deserialization of network data transmission, number of failed connection attempts, and so on.
Example install ice process under linux:
Download the installation source
Cd / etc/yum.repos.dsudo wget https://zeroc.com/download/Ice/3.7/el7/zeroc-ice3.7.repo
Libraries required for Ice
Bzip2 1.0
Expat 2.1 or later
LMDB 0.9 (LMDB is not required with the Clearing 11 mapping)
Mcpp 2.7.2 with patches
OpenSSL 1.0.0 or later (on AIX and Linux)
Install lmdb-devel mcpp-devel (other library systems may come with it, but do not install it first, wait for make to report an error before installing)
Sudo yum install lmdb-devel mcpp-devel
Download the Ice source code ice-3.7.3.tar.gz and decompress it
Cd / home/user/tar-zxf ice-3.7.3.tar.gzcd ice-3.7.3/cpp
Compile (default is clocked 98, but CXXFLAGS can be changed to clocked 11)
Sudo make-j4sudo make CXXFLAGS=-std=c++11-J4
Src/Ice/SHA1.cpp:14:31: fatal error: openssl/sha.h: there is no such file or directory
Sudo yum install openssl-devel
Src/Ice/ConnectionI.cpp:27:21: fatal error: bzlib.h: there is no such file or directory
Sudo yum install bzip2-devel
Src/IceXML/Parser.cpp:7:19: fatal error: expat.h: there is no such file or directory
Sudo yum install expat-devel
Installation (installed at / opt/Ice-3.7.3 by default)
Sudo make install
test
1) write the slice configuration file for ice
Module Demo {interface Printer {void printString (string s);};}
2) compiling Slice definition files (generating Printer.h and Printer.cpp) cannot find slice2cpp, and configure the runtime environment in / opt/Ice-3.7.3/bin
Slice2cpp Printer.ice
3) write the server and name it Server.cpp
# include # include using namespace std;using namespace Demo; class PrinterI: public Printer {public: virtual void printString (const string& s, const Ice::Current&);}; void PrinterI::printString (const string& s, const Ice::Current&) {cout add (object, ic- > stringToIdentity ("SimplePrinter")); adapter- > activate (); ic- > waitForShutdown ();} catch (const Ice::Exception& e) {cerr
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.