Install and configure ACE in the Linux system

zhaozj2021-02-16  101

Install and configure ACE in the Linux system

Author: relaxation (zhangchi@bnchina.com)

This article describes the processes and considerations of the Adaptive Communication Environment (ACE) "on the Linux operating system. Description in the article Based on Redhat Linux 9 operating system and ACE version 5.4

Ready to work:

1. Make sure your Linux operating system has been complete and available. 2. During installing the ACE, you may need root permissions, so make sure you have the password of the root account. 3. For a typical redhat9 system, the version of the AutoConf program may be too low, you need to upgrade it first.

The upgrade steps are as follows:

Enter autoconf -v in the console, view your AutoConf program, if it is less than 2.57g, you will need to download the latest version of the autoconf program, current autoconf program at http://www.gnu.org/software/autoconf/ The version is 2.59, according to the installation instructions in Tarball, compile and install the upgrade AutoConf program

start installation:

After the above preparation, now you have already installed the conditions for installing the ACE. The following starts formal installation work.

First determine the installation path of the ACE and establish a corresponding directory. Here, we install the ACE in the / home / zhc / ace / representation, first execute the MKDIR / HOME / ENC / ACE and then encomps the obtained ACE source code to this directory. TAR ZXVF ACE-5.4.TAR.GZ / HOME / ENC / ACE This time, a subdirectory named ACE_WrapPERS is created in the catalog of ACE, all source code, tools, and examples of ACE are in this directory. First enter this directory, execute CD / Home / ENC / ACE / ACE_WRAPPERS and create a subdirectory, used to store ACE compiled target files Mkdir BuildCD Build then execute the configure script, check your system environment, configure and generate fit you The Makefile file of the system. When executing the configure script, you can add a number of configuration options that detailed to see the Ace-Install.html file under the ACE_WrapPers directory. For the RedHat9 system, you don't have to add any parameters, ACE can work well. ../configure after a long inspection and configuration, if there is no problem, you can start compiling. This step is very simple, execute make, and make a cup of tea, wait for a quiet waiting. If compiling smooth passment (usually this), congratulations, you have succeeded more than half, and the following is just some configuration work. The next job is to install, this step is optional, the purpose is to install the library file, header file, and man page, etc. of the compiled ACE to the corresponding directory of / usr / local, for the convenience of future use, I It is recommended that you still do this step, after the Suroot's PasswordMake Install installation, we can make the final configuration work.

First set the environment variable ACE_ROOT, execute Stenv Ace_Root / Home / ENC / ACE / ACE_WRAPPERS Note that the path should be paid according to your actual situation. If you don't want to set the path per time, you can edit your Bash profile, execute CDVI .Bash_profile In these two lines ACE_ROOT = / HOME / WORK / Cheng / ACE / ACE_WRAPPERSEXPORT ACE_ROOT then created a file called config.h in the $ ACE_ROOT / ACE directory, which contains the following line #include " ACE / config-linux.h "or, you can also create a symbolic link to config-linux.h directly, do ln -s config-linux.h config.h, in $ ACE_ROOT / include / makeinclude Create a file called Platform_Macros.gnu in the directory, which contains the following line include $ (ace_root) /include/makeinclude/platform_linux.gnu or, you can also create a symbolic link pointing to Platform_Linux.gnu directly, execute ln -s platform_linux.GNU platform_macros.GNU last step, set the environment variable LD_LIBRARY_PATH, execution setenv LD_LIBRARY_PATH $ ACE_ROOT / ace: $ ACE_ROOT / lib: / usr / local / lib: $ LD_LIBRARY_PATH or add in ~ / .bash_profile file in the following two LD_LIBRARY_PATH = $ ACE_ROOT / ACE: $ ACE_ROOT / LIB: / USR / local / lib: $ ld_library_patHexport LD_Library_path installation complete:

After the above steps, the ACE has been installed on your system. Here we will compile and execute the ACE routine to verify our work. Here we use the examples of "C network programming, volume one" as an example.

Enter the routine directory, execute CD $ (ACE_ROOT) / Examples / C NPV1 compilation example, execute make if the previous installation and configuration is correct, soon you can get compiled examples. Perform a server program (any one of the rows) and a client program (logging_client), if the program is running correctly, indicating that the previous installation and configuration is successful, you can start your ACE learning trip.

转载请注明原文地址:https://www.9cbs.com/read-10948.html

New Post(0)