1,解压:
cd /home/test
tar jxvf ACE-5.7.1.tar.bz2
[test@centos-252 ~]$ pwd
/home/test
[test@centos-252 ~]$ ls
ACE-5.7.1.tar.bz2 ACE_wrappers
2,把下两行加入到~/.bash_profile:
export ACE_ROOT=/home/test/ACE_wrappers
export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib:$LD_LIBRARY_PATH
3,环境变量生效:
source ~/.bash_profile
4,连接文件:
cd $ACE_ROOT/ace
ln -s config-linux.h config.h
cd $ACE_ROOT/include/makeinclude/
ln -s platform_linux.GNU platform_macros.GNU
5,开始编译
cd $ACE_ROOT
mkdir build
cd build
../configure
make
make install
阅读(1492) | 评论(0) | 转发(0) |