Install Ssdb-rocks on CentOS 6

Source: Internet
Author: User

Install ssdb-rocks on CentOS 6c.c. Posted on August 10, 2014 20:14 | hits:649

In order to optimize the moral integrity selection of the barrage system, intends to change to the Facebook Rocksdb test, in order to support multiple Web server scenarios, intends to directly on the ssdb-rocks to accomplish the purpose, if there is a friend of this need to meet the pit, you can refer to the steps:

Rocksdb need of dependency

Yum install zlib zlib-devel bzip2 bzip2-devel gflags gflags-devel Snappy Snappy-devel

Rocksdb needs gcc47-c++.
    1. cd/etc/yum.repos.d/
    2. wget Http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
    3. Yum--enablerepo=testing-1.1-devtools-6 Install DEVTOOLSET-1.1-GCC devtoolset-1.1-gcc-c++
    4. Import Environment variables
Export CC=/OPT/CENTOS/DEVTOOLSET-1.1/ROOT/USR/BIN/GCC  Export cpp=/opt/centos/devtoolset-1.1/root/usr/bin/cpp  Export cxx=/opt/centos/devtoolset-1.1/root/usr/bin/c++  
Installing Ssdb-rocks
    1. git clone https://github.com/ideawu/ssdb-rocks.git
    2. Make && make install

Note: The above is a library of my fork's original author has been modified, if you use the author's git repo installation may encounter the following error:2014-08-11 version is now fix

/HOME/DOCKER-CC/DOWNLOADS/SSDB-ROCKS/DEPS/ROCKSDB-MASTER/LIBROCKSDB.A (ENV_POSIX.O): In function ' ROCKSDB::( Anonymous namespace)::P Osixenv::nownanos () ':/home/docker-cc/downloads/ssdb-rocks/deps/rocksdb-master/util/env_ posix.cc:1342:undefined reference to ' Clock_gettime ' Collect2:error:ld returned 1 exit status  make[1]: * * * [ALL] Err or 1  make[1]: Leaving directory '/home/docker-cc/downloads/ssdb-rocks/src ' make  : * * * [ALL] Error 2  

Modify the build.sh file to:

Case "$TARGET _os" in      Darwin)        #PLATFORM_CLIBS = "-pthread"        #PLATFORM_CFLAGS = ""    ; Linux)        platform_clibs= "-pthread"    ;

In the Linux section is modified to "-PTHREAD-LRT".

Original link: http://onlyvc.us/install-ssdb-rocks-on-centos-6/

Install Ssdb-rocks on CentOS 6

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.