ubuntu 에 boost 설치 방법
반응형

MySQL 컴파일을 하려고 보니 boost가 필요한데 컴파일중 boost 설치가 실패하여 직접 설치하게 됐다.

 

MySQL 컴파일 에러

-- Performing Test CXX_LD_GOLD_RESULT - Success
-- Downloading boost_1_73_0.tar.gz to /usr/local/boost
CMake Error at cmake/boost.cmake:209 (FILE):
  FILE DOWNLOAD error: cannot create directory '/usr/local/boost' - Specify
  file by full path name and verify that you have directory creation and file
  write privileges.
Call Stack (most recent call first):
  CMakeLists.txt:1284 (INCLUDE)


-- Download failed, error: 
CMake Error at cmake/boost.cmake:232 (MESSAGE):
  You can try downloading
  https://boostorg.jfrog.io/artifactory/main/release/1.73.0/source/boost_1_73_0.tar.gz
  manually using curl/wget or a similar tool
Call Stack (most recent call first):
  CMakeLists.txt:1284 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/home/enowy/development/server/mysql-server/build/CMakeFiles/CMakeOutput.log".
See also "/home/enowy/development/server/mysql-server/build/CMakeFiles/CMakeError.log".

결국 boost를 직접 설치한다.

 

boost 다운로드

# boost 홈페이지 방문하여 링크 확인 후 다운로드
wget https://boostorg.jfrog.io/artifactory/main/release/1.73.0/source/boost_1_73_0.tar.gz

# 압축 해제 후 디렉터리로 이동해서
tar xvf boost_1_73_0.tar.gz
cd boost_1_73_0

 

boost 설치

# boost 엔진 빌드
$ sudo ./bootstrap.sh

# boost 설치
$ sudo ./b2 install

 

 

실제 설치하는 화면 내용을 아래에 기록으로 남긴다.

$ sudo ./bootstrap.sh 
Building Boost.Build engine with toolset gcc... tools/build/src/engine/b2
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam for gcc...

Bootstrapping is done. To build, run:

    ./b2
    
To generate header files, run:

    ./b2 headers

To adjust configuration, edit 'project-config.jam'.
Further information:

   - Command line help:
     ./b2 --help
     
   - Getting started guide: 
     http://www.boost.org/more/getting_started/unix-variants.html
     
   - Boost.Build documentation:
     http://www.boost.org/build/
     
     
$ sudo ./b2 install
Performing configuration checks

    - default address-model    : 64-bit
    - default architecture     : x86
    - C++11 mutex              : yes
    - lockfree boost::atomic_flag : yes
    - Boost.Config Feature Check: cxx11_auto_declarations : yes
    - Boost.Config Feature Check: cxx11_constexpr : yes
    - Boost.Config Feature Check: cxx11_defaulted_functions : yes
    - Boost.Config Feature Check: cxx11_final : yes
    - Boost.Config Feature Check: cxx11_hdr_mutex : yes
    - Boost.Config Feature Check: cxx11_hdr_tuple : yes
    - Boost.Config Feature Check: cxx11_lambdas : yes
    - Boost.Config Feature Check: cxx11_noexcept : yes
    - Boost.Config Feature Check: cxx11_nullptr : yes
    - Boost.Config Feature Check: cxx11_rvalue_references : yes
    - Boost.Config Feature Check: cxx11_template_aliases : yes
    - Boost.Config Feature Check: cxx11_thread_local : yes
    - Boost.Config Feature Check: cxx11_variadic_templates : yes
    - has_icu builds           : no
warning: Graph library does not contain MPI-based parallel components.

# 끝없는 stdout.... 기다리면 끝나겠지....
반응형