a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 123|回复: 1

[综合辅导] Linux辅导:linux下安装ACE

[复制链接]
发表于 2012-8-4 12:07:07 | 显示全部楼层 |阅读模式
首先安装这个工具,收集上良多,百度google 一大把,我就找个斗劲有代表性的贴不才边吧。主若是想说一下我碰着的问题
3 z3 y. g$ q* q! S' O7 ?  首先把文件解压,我解压在了/Software文件夹下,解压后会呈现一个名字为ACE_wrappers的文件夹。这样所有ACE的源文件都在/Software/ACE_wrappers琅缦沔
% {$ ?$ H. O8 t4 K  1.1 设置装备摆设情形变量: . q! }" r  r6 L7 \+ n
  # vi /etc/profile
6 R. G1 Q" [+ Q$ k. u- z% b2 H  增添如下的内容
3 a7 l% F2 o) o  ACE_ROOT=/Software/ACE_wrappers ------就是膳缦沔存放ACE源文件的目录
& ?( k6 d" `+ B) |  export ACE_ROOT " p' {6 i" o% s, X# u) g: s$ J- D
  LD_LIBARY_PATH=$ACE_ROOT/ace:$LD_LIBARY_PATH - L! L# `4 h: i) m7 s
  export LD_LIBARY_PATH
2 L, j1 k- q" e/ z* q2 s  # source /etc/profile
: d. m! X& Y4 O7 `  1.2 起头安装ACE # W! B; O8 r* p0 g* Q
  # cd /Software/ACE_wrappers
. h/ O; c$ N" G; g' ?9 ^" c  # vi ace/config.h 3 K' b, z8 K- F* L2 R; g: K8 |3 i4 B
  增添如下信息: , a# ~- u, Q# V: T
  #include “ace/config-linux.h”
" G, N0 V& _) U; H  如不美观想用MSVC尺度C++头,则需要在ace/config.h中增添界说: " U  Z7 m" @1 a+ C. I/ V( w* \; ~
  #define ACE_HAS_STANDARD_CPP_LIBARY 1
回复

使用道具 举报

 楼主| 发表于 2012-8-4 12:07:08 | 显示全部楼层

Linux辅导:linux下安装ACE

  我的config.h文件内容如下: - Y2 p! P6 ?2 _
  #define ACE_HAS_STANDARD_CPP_LIBARY 1 // 使用尺度C++头
2 M# |, u7 O* Y  #define ACE_NO_INLINE // 不使用内连函数,能减小LIB和EXE的巨细 9 v0 q+ V9 r3 G) b4 H0 p. \
  #include “ace/config-linux.h”
8 }" \$ x9 U& h9 f  保留猬缩后退出
5 n# r! f: o+ S4 p2 `  # mkdir build ----新建一个build文件夹 ' F5 V2 Y+ S8 s: X0 t/ ^. I
  # cd build ' [+ J  s! a9 h" W8 u% O6 D5 j, v) [7 i) v
  # ../configure --prefix=/usr/local/ACE -------在这里我指定了ACE的安装路径
$ F- n$ F- {1 l1 u  # make & install 无忧智考网
# u9 w2 f/ q) Q9 j' G; X. B* M  第一个问题,在make的时辰找不到了ssl这个工具。。这个ssl具体来说是收集上一个平安和谈。系统默认是安装的,可是我在编译时辰一向呈现这个问题,原本是打开了。我的版本号是6.0的。所以,经由查找辅佐文档,configure这个设置装备摆设的时辰 5 i$ ?1 f: I1 i8 l8 N7 }/ ~0 M
  --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. 5 ]) l" u. x2 H6 e2 `
  --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.
6 p8 h* C! N1 D+ x7 |& ]3 u( ?7 f  --with-openssl-include: Specify the directory containing the OpenSSL header files. & L) u0 `5 s( C5 p$ `; j0 U/ I" N& M
  --with-openssl-libdir: Specify the directory containing the OpenSSL libraries.   应该封锁它呼吁如下../configure --disable-ssl
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-17 22:18 , Processed in 0.218830 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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