Print service provided by iDogiCat: http://www.idogicat.com/
home logo





Home > IT > Programming > C++ Programming > Building & Installing ACE in Linux

Building & Installing ACE in Linux

iDog

ACE is a useful lib for programming network and multithreading applications.

  • Get the source distribution: ACE5.xx.tar.gz
  • Set environment variables:
ACE_ROOT=/home/username/ace
Export ACE_ROOT
LD_LIBRARY_PATH=$(ACE_ROOT)/ace:$LD_LIBRARY_PATH
Export LD_LIBRARY_PATH
  • Retrieve ACE-install.sh, and move it to the dir with the archive file
tar –zxvf ACE5.xx.tar.gz ACE_wrappers/ACE-install.sh
mv ACE_wrappers/ACE-install.sh ./
  • Edit the install script:
    • Locate MY_ACEDIR, make it equals to /home/username/ace
    • Locate MY_ACE_CONFIG, make it to config-linux.h
    • Locate MY_ACE_GNU_MACROS, make it to platform_linux.GNU
  • Run the install script:
./ACE-install.sh

That’s it. The header files and libraries are installed in $(ACE_ROOT)/ace.