Linux Platform Installation Ace Library

Source: Internet
Author: User

Ace Effects Show:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/1B/wKiom1gHgWnwaNJcAAA44a-OQ7s198.png "title=" Qq20161019222059.png "alt=" Wkiom1ghgwnwanjcaaa44a-oq7s198.png "/>




go to official website : http://download.dre.vanderbilt.edu/



Download unzip

[Email protected]:~$ mkdir ace[email protected]:~$ cd ace/[email protected]:~/ace$ wgethttp:// Download.dre.vanderbilt.edu/previous_versions/ace+tao-6.4.0.tar.gz[email protected]:~/ace$ md5sum ACE+ tao-6.4.0.tar.gz 056dcb226025f57d00aa6f79b3056d42 ace+tao-6.4.0.tar.gz[email protected]:~/ace$ Tar XF ACE+ tao-6.4.0.tar.gz [email protected]:~/ace$ cd ace_wrappers/[email protected]:~/ace/ace_wrappers$ pwd/home/chunli/ACE/ Ace_wrappers



Set Environment variables:

[Email protected]:~$ vim ~/.BASHRC export Ace_root=/home/chunli/ace/ace_wrappersexport ld_library_path=/usr/local/ Lib: $ACE _root/lib: $LD _library_path[email protected]:~$. ~/.bashrc




Set up Make

[Email protected]:~/ace/ace_wrappers$ vim $ACE _root/ace/config.h#ifndef _config_h_#define _config_h_#include "ace/ Config-linux.h "#endif [email protected]:~/ace/ace_wrappers$ vim $ACE _root/include/makeinclude/platform_macros. Gnuinclude $ (ace_root)/include/makeinclude/platform_linux. Gnu


Compile

[Email protected]:~/ace/ace_wrappers$ make (takes about 20 minutes) [Email protected]:~/ace/ace_wrappers$ echo $?0




Installation

[Email protected]:~$ sudo-s[email protected]:~# CD ace/ace_wrappers/[email protected]:~/ace/ace_wrappers# Export Install_prefix=/usr/local (Perform this line if make install error) [email protected]:~/ace/ace_wrappers# make install[email protected ]:~/ace/ace_wrappers# Echo $?0



Test ace

[Email protected]:/tmp$ cat helloworld.cpp #include "ace/log_msg.h" int ace_tmain (int argc, char* argv[]) {Ace_debug (lm_ DEBUG, Ace_text ("Hello world!\n"))); return 0;} [Email protected]:/tmp$ g++-wall helloworld.cpp-lace &&/a.out Hello world! [Email protected]:/tmp$





This article from "Soul Bucket Luo" blog, declined reprint!

Linux Platform Installation Ace Library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.