Compile and install the MySQL times after missing boost1.59, compile and install boost1.59

Source: Internet
Author: User

1. Download:

Website: https://nchc.dl.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz

2. Compiling:

2.1 Quick Install boost:

It is easy to install boost 1.59.0 under the operating system of the Linux kernel, and the simplest way is to execute the command directly under the Boost decompression directory:

./bootstrap.sh./B2 Install

The first command statement booststrap.sh is the pre-compilation configuration work, and the second command B2 start the actual compilation and install boost. Because no additional options are specified, boost compiles the release version of the library file, installs the head file to/usr/local/include, and the library file is installed to/usr/local/lib.

2.2 Full installation boost:

Full compile boost, use the BuildType option to specify the compilation type (if you do not specify the default using release mode), and after bootstrap.sh execute the following command:

./b2--buildtype=complete Install

This will start the full compilation of boost and install all the debug, release static and dynamic libraries.

2.3 Custom Install Boost:

full compilation boost takes time and effort, and these libraries are not used in real-world development, so boost also allows users to choose which libraries they want to compile themselves. Execute command:

./B2--show-libraries

You can view all libraries that must be compiled before you can use them.

On a fully compiled basis, you can use the--with or--without option to open or close the compilation of a library, such as:

./b2--with-date_time--buildtype=complete Install

Only compile and install the Date_time library.

you can generally use the following installation commands:

sudo./b2 link=static Install #编译安装所有静态库

Error Resolution:

Using the Python library is required

Otherwise, the following error appears:

./boost/python/detail/wrap_python.hpp:50:23:fatal error:pyconfig.h:no such file or directory
Compilation terminated.

"G++"-ftemplate-depth-128-o3-finline-functions-wno-inline-wall-march=i686-pthread-fpic-m32-dboost_all_no_lib=1 -dboost_python_source-dndebug-i "."-i "/usr/include/python2.7"-c-o "bin.v2/libs/python/build/gcc-5.4.0/release/ THREADING-MULTI/OBJECT/FUNCTION_DOC_SIGNATURE.O "" Libs/python/src/object/function_doc_signature.cpp "

... failed gcc.compile.c++ bin.v2/libs/python/build/gcc-5.4.0/release/threading-multi/object/function_doc_ SIGNATURE.O ...

.. Failed updating-targets ...
... skipped targets ...
... updated 11810 targets ...

Use

Yum-y Install Python-dev


This article is from the "Night" blog, please be sure to keep this source http://liuqun.blog.51cto.com/3544993/1983726

Compile and install the MySQL times after missing boost1.59, compile and install boost1.59

Related Article

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.