射精一区欧美专区|国产精品66xx|亚洲视频一区导航|日韩欧美人妻精品中文|超碰婷婷xxnx|日韩无码综合激情|特级黄片一区二区|四虎日韩成人A√|久久精品内谢片|亚洲成a人无码电影

您現(xiàn)在的位置:首頁 > IT認(rèn)證 > Linux認(rèn)證 >

linux下安裝ACE


linux下安裝ACE

首先安裝這個(gè)東西,網(wǎng)絡(luò)上很多,百度google 一大把,我就找個(gè)比較有代表性的貼在下邊吧。主要是想說一下我遇到的問題

  首先把文件解壓,我解壓在了/Software文件夾下,解壓后會(huì)出現(xiàn)一個(gè)名字為ACE_wrappers的文件夾。這樣所有ACE的源文件都在/Software/ACE_wrappers里面

  1.1 配置環(huán)境變量:

  # vi /etc/profile

  增加如下的內(nèi)容

  ACE_ROOT=/Software/ACE_wrappers ------就是上面存放ACE源文件的目錄

  export ACE_ROOT

  LD_LIBARY_PATH=$ACE_ROOT/ace:$LD_LIBARY_PATH

  export LD_LIBARY_PATH

  # source /etc/profile

  1.2 開始安裝ACE

  # cd /Software/ACE_wrappers

  # vi ace/config.h

  增加如下信息:

  #include “ace/config-linux.h”

  如果想用MSVC標(biāo)準(zhǔn)C++頭,則需要在ace/config.h中增加定義:

  #define ACE_HAS_STANDARD_CPP_LIBARY 1

  我的config.h文件內(nèi)容如下:

  #define ACE_HAS_STANDARD_CPP_LIBARY 1 // 使用標(biāo)準(zhǔn)C++頭

  #define ACE_NO_INLINE // 不使用內(nèi)連函數(shù),能減小LIB和EXE的大小

  #include “ace/config-linux.h”

  保存后退出

  # mkdir build ----新建一個(gè)build文件夾

  # cd build

  # ../configure --prefix=/usr/local/ACE -------在這里我指定了ACE的安裝路徑

  # make & install

  第一個(gè)問題,在make的時(shí)候找不到了ssl這個(gè)東西。。這個(gè)ssl具體來說是網(wǎng)絡(luò)上一個(gè)安全協(xié)議。系統(tǒng)默認(rèn)是安裝的,但是我在編譯時(shí)候一直出現(xiàn)這個(gè)問題,原來是打開了。我的版本號(hào)是6.0的。所以,經(jīng)過查找?guī)椭臋n,configure這個(gè)配置的時(shí)候

  --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.

  應(yīng)該關(guān)閉它命令如下../configure --disable-ssl

相關(guān)文章

無相關(guān)信息
更新時(shí)間2022-03-13 11:11:02【至頂部↑】
聯(lián)系我們 | 郵件: | 客服熱線電話:4008816886(QQ同號(hào)) | 

付款方式留言簿投訴中心網(wǎng)站糾錯(cuò)二維碼手機(jī)版

客服電話: