Linux安装ACE 6.3.0

linux环境

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

ACE :ACE-6.3.0.tar.gz

ace下载及解压

1
2
3
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环境变量配置

1
2
3
4
5
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编译配置及安装

1
2
3
4
5
6
7
8
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 编译配置这个地方,不然安装会报错

好了,,安装完成。

你可能感兴趣的:(Linux安装ACE 6.3.0)