For instructions on installing ACE in Linux-general Linux technology-Linux programming and kernel information, see the following for details. It should be noted that:
First, set the $ ACE_ROOT environment variable and point it to the ACE_wrappers Directory: You can edit/etc/profile or. bash_profile file, such as ACE_ROOT =/works /... /ACE_wrappers, export the export ACE_ROOT, and view it with echo $ ACE_ROOT.
Next, go to the $ ACE_ROOT/ace directory and create a text config. h with the following content:
# Include "ace/config-linux.h"
Then, go to the $ ACE_ROOT/include/makeinclude directory and create a text file platform_macros.GNU with the following content:
Include $ (ACE_ROOT)/include/makeinclude/platform_linux.GNU
Return to the $ ACE_ROOT directory, create a build (other names can be used), enter the build directory, and execute
../Configure // configure the environment
After execution, run
Make
Wait.
After a long wait, ACE is compiled.
After compilation, if you want to install and use it, you can start to execute the installation. The command is as follows:
Make install
General default installation path/usr/local/include/ace --> header file
/Usr/local/lib --> Link Library File
After the installation is completed, you need to set the path.
1. Set the path for compiling the link: Use root to edit the/etc/ld. so. conf file, and add the path of the Link Library to the file, for example:
/Usr/local/lib
Then execute the command:/sbin/ldconfig
2. Set the LD_LIBRARY_PATH environment variable
This environment variable can be set as root in the/etc/profile file, or in. bash_profile. You can add the following class path wherever possible:
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.