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++.
- cd/etc/yum.repos.d/
- wget Http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
- Yum--enablerepo=testing-1.1-devtools-6 Install DEVTOOLSET-1.1-GCC devtoolset-1.1-gcc-c++
- 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
- git clone https://github.com/ideawu/ssdb-rocks.git
- 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