Linux安装ACE 6.3.0

ACE框架
ACE(Adaptive Communication Environment)是一个跨平台的用于并发通信的C++框架,ACE提供了丰富的可重用的C++封装器(Wrapper Facade)和框架组件。具体的介绍可以查看官方文档

linux环境

CentOS release 6.5 (Final)
或者 CentOS release 5.8 (Final) 都测试安装成功

ACE :ACE-6.3.0.tar.gz

ace下载及解压

wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.3.0.tar.gz
tar zxf ACE-6.2.0.tar.gz
mv ACE_wrappers /usr/local/

ace环境变量配置

cat >/etc/profile.d/ace.sh <<'EOF' 
export ACE_ROOT=/usr/local/ACE_wrappers 
export LD_LIBRARY_PATH=$ACE_ROOT:$LD_LIBRARY_PATH 
EOF 
source /etc/profile.d/ace.sh

ace编译配置及安装

echo '#include "ace/config-linux.h"' > $ACE_ROOT/ace/config.h
echo 'include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU' > $ACE_ROOT/include/makeinclude/platform_macros.GNU
echo 'INSTALL_PREFIX = /usr/local' >>$ACE_ROOT/include/makeinclude/platform_macros.GNU

#如果需要生成静态库,需要加入 static_libs = 1 
echo 'static_libs = 1' >> $ACE_ROOT/include/makeinclude/platform_macros.GNU

cd $ACE_ROOT/ace ; make && make install

值得注意的地方就是 ace 编译配置这个地方,不然安装会报错

好了,,安装完成。

转载请注明:Huangdc » Linux安装ACE 6.3.0

results matching ""

    No results matching ""