You cannot see this page without javascript.

Linux 환경에서 ACE framework 설치하기

Linux 조회 수 690 추천 수 0 2015.01.12 12:15:33

$ wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.2.2.tar.gz
$ tar xvfz ACE-6.2.2.tar.gz
$ vi ~/.bash_profile
ACE_ROOT=/home/vagrant/ACE_wrappers; export ACE_ROOT

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ACE_ROOT/ace:$ACE_ROOT/lib:/usr/local/lib:/usr/lib; export LD_LIBRARY_PATH

PATH=$PATH:.:$JAVA_HOME/bin:$HOME/bin; export PATH

$ source ~/.bash_profile
$ cd ACE_wrappers
$ cd ace
$ ln -s config-linux.h config.h
$ cd $ACE_ROOT/include/makeinclude
$ ln -s platform_linux.GNU platform_macros.GNU
$ cd $ACE_ROOT
$ make
$ cd /home/vagrant/ACE_wrappers/examples/Threads
$ make
$ ./task_one
(140169006995200) in iteration 1
(140169006995200) in iteration 2
(140169006995200) in iteration 3
(140169006995200) in iteration 4
(140169006995200) in iteration 5
(140169031112480) done
 

 

 

 

 

 

 

 

 

 

1. 공식 다운로드 페이지에서 ACE-5.5.tar.gz파일을 다운로드 받습니다.

2. 환경 변수를 설정합니다.(~/.bash_profile)
  - ACE_ROOT=/home/k2/Apps/ACE_wrappers;export ACE_ROOT
  - LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib:$LD_LIBRARY_PATH; 
    export LD_LIBRARY_PATH

3. $ACE_ROOT/ace에서 심볼릭 링크 추가합니다.
  - ln -s config-linux.h config.h

4. $ACE_ROOT/include/makeinclude 에서 심볼릭 링크 추가합니다.
  - ln -s platform_linux.GNU platform_macros.GNU

5. $ACE_ROOT/ace에서 make

6. 컴파일 제대로 되었는지 확인합니다.
  - $ACE_ROOT/examples/Threads에서 make
  - ./task_one 실행하면은 아래 결과처럼 나오면 성공이에요
  (3076410288) in iteration 1
  (3076410288) in iteration 2
  (3076410288) in iteration 3
  (3076410288) in iteration 4
  (3076410288) in iteration 5
  (3076412064) done

7. 설치된 라이브러리 디렉토리는 $ACE_ROOT/lib입니다.

8. 그 다음 ACE 라이브러리를 확인하여 서버 프로그램 개발을 하면 됩니다.

List of Articles
번호 제목 글쓴이 날짜sort 조회 수

XE Login