https://www.oschina.net/p/ace
从这里可进入软件首页、软件文档、源码下载
1、安装请参考
http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#installpre
主要这几步:
1.1下载源码,可以下载解包,也可以用git clone下载git clone https://github.com/DOCGroup/ACE_TAO.git
1.2得到MPC, 要使用这个来生成Makefile
先cd到ACE目录,(解包的是ACE_wrappers目录),然后
git clone https://github.com/DOCGroup/MPC.git MPC
如果下载到别的目录,就要设置MPC_ROOT的环境变量
1.3 设置环境变量
ACE_ROOT=$(cwd)
export ACE_ROOT
创建文件$ACE_ROOT/ace/config.h,增加 #include "ace/config-linux.h" 一行
创建文件$ACE_ROOT/include/makeinclude/platform_macros.GNU,增加 include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU 一行
export LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH
创建Makefile 文件 $ACE_ROOT/bin/mwc.pl -type gnuace
这时可能会提示
CIAO_ROOT was used in the configuration file, but was not defined.
DANCE_ROOT was used in the configuration file, but was not defined.这个错误不用管,它是编译CIAO和DANCE时需要的
然后运行make就可以编译了
2、unbantu可以使用下面命令在线安装,apt-get install libace-dev
开始出现
E: dpkg 被中断,您必须手工运行 ‘sudo dpkg --configure -a’ 解决此问题。
运行sudo dpkg --configure -a后,再安装出现
您可能需要运行“apt-get -f install”来纠正下列错误:
运行apt-get -f install,再安装就可以了
安装在/usr/lib/ace 和/usr/include/ace