a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 73|回复: 0

[综合辅导] Linux认证考试学习辅导:linux下安装ACE

[复制链接]
发表于 2012-8-4 12:07:07 | 显示全部楼层 |阅读模式
Linux认证考试学习辅导:linux下安装ACE
, Q. ~/ G% `  z3 P4 ~linux下安装ACE6 }# s( ~9 M' _
首先安装这个东西,网络上很多,百度google 一大把,我就找个比较有代表性的贴在下边吧。主要是想说一下我遇到的问题
- `3 Y4 H2 y! c4 ?1 Y0 R首先把文件解压,我解压在了/Software文件夹下,解压后会出现一个名字为ACE_wrappers的文件夹。这样所有ACE的源文件都在/Software/ACE_wrappers里面! I* p, N6 ~" ^- B2 l
1.1 配置环境变量:7 X7 b3 {6 k1 B& q; v
# vi /etc/profile
( f. U  z9 Y0 c1 Z增加如下的内容  I( e' J5 c8 h) ~/ h
ACE_ROOT=/Software/ACE_wrappers ------就是上面存放ACE源文件的目录
8 l/ P4 h! f5 @! s! I7 w  lexport ACE_ROOT1 A) b& t& S5 V' z7 H! m
LD_LIBARY_PATH=$ACE_ROOT/ace:$LD_LIBARY_PATH7 e$ W& A2 V! C) U- r& S/ j1 n# Z
export LD_LIBARY_PATH
) \  n$ n+ d. t/ ^( }" Z; o0 A# source /etc/profile+ g4 N  W, K* i9 k
1.2 开始安装ACE
% n- ]- D' G2 l, C# cd /Software/ACE_wrappers2 }" ]1 r- [: H6 d# K7 {. z( Y" ^
# vi ace/config.h2 [0 A* b+ w( E' y1 g/ V1 F
增加如下信息:$ E9 a, U$ B* x2 A! `1 N
#include “ace/config-linux.h”
! e  u" x/ v* q6 e如果想用MSVC标准C++头,则需要在ace/config.h中增加定义:+ R' O3 b* q" ]
#define ACE_HAS_STANDARD_CPP_LIBARY 14 E1 a' ?* K1 B5 r# O
我的config.h文件内容如下:, ]2 k; @" w: ]
#define ACE_HAS_STANDARD_CPP_LIBARY 1 // 使用标准C++头
: R8 D" g2 ^: ?! X5 h% |#define ACE_NO_INLINE // 不使用内连函数,能减小LIB和EXE的大小
$ ?% |' k- @$ f: j8 t#include “ace/config-linux.h”. ~6 k3 z+ M: D- \+ l2 y
1 @5 }, U5 i) k% J7 m
/ e7 o; Z% Z$ f9 k
保存后退出- F- j9 C0 i9 s6 a% H2 m7 O
# mkdir build ----新建一个build文件夹2 S0 o( e9 n) E! d: [6 i
# cd build
+ B0 Z, w# y& o, ~2 u" T1 b# 。./configure --prefix=/usr/local/ACE -------在这里我指定了ACE的安装路径5 Z% o3 v0 j. o- ]1 E5 n& Z+ H
# make & install" \6 p7 s! \, S. M# i8 c% t
第一个问题,在make的时候找不到了ssl这个东西。。这个ssl具体来说是网络上一个安全协议。系统默认是安装的,但是我在编译时候一直出现这个问题,原来是打开了。我的版本号是6.0的。所以,经过查找帮助文档,configure这个配置的时候) q6 L# [  u, L
--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.
& G1 i0 t% }- P--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.% p8 b$ i5 x* e: S' ^& n; T6 w
--with-openssl-include: Specify the directory containing the OpenSSL header files.6 k* ]3 X- z, J/ O4 c- W1 z5 L$ k
--with-openssl-libdir: Specify the directory containing the OpenSSL libraries.
% Z  H7 n' f1 ^应该关闭它命令如下。./configure --disable-ssl
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-21 08:37 , Processed in 0.197672 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表