首先把文件解压,我解压在了/Software文件夹下,解压后会出现一个名字为ACE_wrappers的文件夹。这样所有ACE的源文件都在/Software/ACE_wrappers里面1.1 配置环境变量:# vi /etc/profile增加如下的内容ACE_ROOT=/Software/ACE_wrappers ------就是上面存放ACE源文件的目录export ACE_ROOTLD_LIBARY_PATH=$ACE_ROOT/ace:$LD_LIBARY_PATHexport LD_LIBARY_PATH# source /etc/profile1.2 开始安装ACE# cd /Software/ACE_wrappers# vi ace/config.h增加如下信息:#include “ace/config-linux.h”如果想用MSVC标准C++头,www.linuxidc.com则需要在ace/config.h中增加定义:#define ACE_HAS_STANDARD_CPP_LIBARY 1我的config.h文件内容如下:#define ACE_HAS_STANDARD_CPP_LIBARY 1 // 使用标准C++头#define ACE_NO_INLINE // 不使用内连函数,能减小LIB和EXE的大小#include “ace/config-linux.h”保存后退出# mkdir build ----新建一个build文件夹# cd build# ../configure --prefix=/usr/local/ACE -------在这里我指定了ACE的安装路径# make & install第一个问题,在make的时候找不到了ssl这个东西。。这个ssl具体来说是网络上一个安全协议。系统默认是安装的,但是我在编译时候一直出现这个问题,原来是打开了。我的版本号是6.0的。所以,经过查找帮助文档,configure这个配置的时候--enable-ssl (yes): Include the ACE_SSL library when building ACE. Requires the SSL components to be available using the compiler"s and linker"s default search directories. --with-openssl: Specifies the root directory of the OpenSSL installation; expects the specified directory to have include and lib subdirectories. To specify other locations for the header and libraries, use one or both of the following. --with-openssl-include: Specify the directory containing the OpenSSL header files. --with-openssl-libdir: Specify the directory containing the OpenSSL libraries. 应该关闭它命令如下../configure --disable-ssl在进行编译,就会成功了。Fedora 17 发布日程SSH 连接问题 SSh Agent admitted failure to sign using the key相关资讯 ACE
- ACE 6.2.5 发布,面向对象的网络开 (04/15/2014 11:05:42)
- ACE 6.1.4 发布,面向对象的工具开 (08/31/2012 10:02:09)
- ACE for Linux 安装 (07/01/2012 05:55:58)
| - ACE 6.2.4 发布,面向对象的工具开 (01/10/2014 08:37:41)
- ACE 6.1.3 发布,面向对象的工具开 (07/27/2012 12:40:38)
- Fedora 16下ACE的编译安装 (04/11/2012 09:56:09)
|
本文评论 查看全部评论 (0)