CentOS Release 6.6 (Final) Compile mesos-1.1.0

Source: Internet
Author: User
Tags create directory openssl centos
The library of the system is obsolete, the main work is to install the dependency, and can not install Yum (very few can), requires source code installation
Most of the source code compiled, however, need to modify the code, some need to modify the M4 macro, some need to modify the makefile, some need to be installed under the/usr/lib library
Copy to/usr/lib64 or/usr/local/xxx/lib, some make install will not copy the header file, you need to copy it by hand.

These dependencies were reported at the time of configure Mesos.

1. Upgrade g++
./contrib/download_prerequisites
Mkdir.. /gcc-build-4.8.4
Cd.. /gcc-build-4.8.4/
.. /gcc-4.8.4/configure--enable-checking=release--enable-languages=c,c++--disable-multilib
Make-j4
Make install

Here's what you need.
Find. -name libstdc++.*
CP./prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.19/usr/lib64/
Ln-sf/usr/lib64/libstdc++.so.6.0.19/usr/lib64/libstdc++.so.6

2. Install MAVEN, unzip, set environment variables (if Java is installed, my computer has installed the Jdk1.6.45,maven version can not be too high, otherwise jdk6 not supported)
Export m2_home=/home/work/liuwb/mesos/apache-maven-3.2.2
Path= $PATH: $M 2_home/bin
Export PATH

3. Installing cyrus-sasl-devel.x86_64
One of the more troublesome things, first he relied on OPENSSL-1.0.2J (official website), download, open source Software Installation trilogy, Configure,make,make install
Then start Configue SASL, depends on what to load what, configure through, make will error, cannot find the type, because the header file contains errors, des.h before need to add OpenSSL
Make successful, configure Mesos will also error, find not the head file, then need to manually copy SASL header file to/usr/include below
Even if the Configure Mesos successful, the following check SASL function will also be an error, because he is autoconf is dynamic link, it is only found under/usr/lib64 by default, so you need to copy the library
or move libsaslxx to lib64.

4. Install LIBSVN_SUBR, this is because mesos need to check Svn_version.h,yum installed, even if the Devel package is installed
This is also a very troublesome thing, he relies on Apr,apr-util, but his code in the M4 macro is written by the APU, need to correct it, in addition he relies on Python
My computer is 2.6, need to upgrade to 2.7,yum No, only energy code installation, but Yum is also dependent on Python, so be careful, let Yum also use the previous version (Vi/usr/bin/yum)
He also relies on the Sqlite3,yum version too old, requires source code installation, Sqlite3 relies on expat, this can be installed Yum
Also install Apr,apr-util,mesos also indirectly rely on these two libraries, is its third-party library relies on, find the path unexpectedly is/usr/local/xxx/lib, so need to create directory, copy

5. Install Python dependent google-apputils-0.4.2
Direct download installation is unsuccessful, only manually download each dependency, execute Python setup.py install sequentially
dependent on having Setuptools-0.6c11-py2.7.egg,pytz-2016.2-py2.7.egg,egg without installation, python-gflags-3.0.5,python-dateutil-2.5.2 (it relies on six-1.10.0)

6. Then the Mesos installation was successful (make succeeded)


7. Make check may be error, may be/usr/lib under the SVN library is not copied to/usr/lib64, or it may be the library is too old lib64, in short, replace OK

If you report to many open files, do not


8. Start

If according to the official website to use 127.0.0.1, then I believe that 99% of the people's browser is not in this machine, are working machine access, so the loopback address is changed to IP, so that the office can access the


10.126.106.72:5050




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.