rocksdb 编译安装 日志
Compilation
RocksDB's library should be able to compile without any dependency installed, although we recommend installing some compression libraries (see below). We do depend on newer gcc/clang with C++11 support.
There are few options when compiling RocksDB:
[recommended]
make static_libwill compile librocksdb.a, RocksDB static library.make shared_libwill compile librocksdb.so, RocksDB shared library.make checkwill compile and run all the unit testsmake allwill compile our static library, and all our tools and unit tests. Our tools depend on gflags. You will need to have gflags installed to runmake all.By default the binary we produce is optimized for the platform you're compiling on (-march=native). If you want to build a portable binary, add 'PORTABLE=1' before your make commands, like this:
PORTABLE=1 make static_lib
Dependencies
You can link RocksDB with following compression libraries:
All our tools depend on:
- gflags - a library that handles command line flags processing. You can compile rocksdb library even if you don't have gflags installed.
 
Supported platforms
- Linux - Ubuntu
- Upgrade your gcc to version at least 4.7 to get C++11 support.
 - Install gflags. First, try: 
sudo apt-get install libgflags-devIf this doesn't work and you're using Ubuntu, here's a nice tutorial: (http://askubuntu.com/questions/312173/installing-gflags-12-04) - Install snappy. This is usually as easy as: 
sudo apt-get install libsnappy-dev. - Install zlib. Try: 
sudo apt-get install zlib1g-dev. - Install bzip2: 
sudo apt-get install libbz2-dev. 
 Linux - CentOS
- Upgrade your gcc to version at least 4.7 to get C++11 support: 
yum install gcc47-c++ Install gflags:
wget https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz
tar -xzvf gflags-2.0-no-svn-files.tar.gz
cd gflags-2.0
./configure && make && sudo make install
Install snappy:
wget https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz
tar -xzvf snappy-1.1.1.tar.gz
cd snappy-1.1.1
./configure && make && sudo make install
Install zlib:
sudo yum install zlib
sudo yum install zlib-devel
Install bzip2:
sudo yum install bzip2
sudo yum install bzip2-devel
- Upgrade your gcc to version at least 4.7 to get C++11 support: 
 OS X:
- Install latest C++ compiler that supports C++ 11:
- Update XCode: run 
xcode-select --install(or install it from XCode App's settting). - Install via homebrew.
- If you're first time developer in MacOS, you still need to run: 
xcode-select --installin your command line. - run 
brew tap homebrew/dupes; brew install gcc47 --use-llvmto install gcc 4.7 (or higher). 
 - If you're first time developer in MacOS, you still need to run: 
 
 - Update XCode: run 
 - run 
brew install rocksdb 
- Install latest C++ compiler that supports C++ 11:
 iOS:
- Run: 
TARGET_OS=IOS make static_lib. When building the project which uses rocksdb iOS library, make sure to define two important pre-processing macros:ROCKSDB_LITEandIOS_CROSS_COMPILE. 
- Run: 
 
rocksdb 编译安装 日志的更多相关文章
- Nginx服务编译安装、日志功能、状态模块及访问认证模式实操
		
系统环境 [root@web ~]# cat /etc/redhat-release CentOS release 6.9 (Final) [root@web ~]# uname -a Linux d ...
 - linux下rocksdb的编译安装
		
RocksDB起源于Facebook的实验室项目,实现了一个高性能的快速存储器,是基于C++编写的key value数据库,很多软件都是采用内置rocksdb的方式运行,所以需要我们提前安装rocks ...
 - 编译安装zabbix3.2
		
1.1 环境准备 系统环境准备:redhat 6.6 64位mysql-5.6.34php-5.6.28zabbix-3.2.1配置前先关闭iptables和SELINUX,避免安装过程中报错. # ...
 - ubuntu10.04编译安装LAMP
		
ubuntu10.04编译安装LAMP以及简单wordpress的使用 : http://linuxme.blog.51cto.com/1850814/971631 一.源码安装LAMP 网上有一堆关 ...
 - CentOS 7.1编译安装PHP7
		
原文: https://typecodes.com/web/centos7compilephp7.html?utm_source=tuicool&utm_medium=referral 1 创 ...
 - Linux下编译安装MariaDB
		
MariaDB是MySQL的一个开源分支,主要是社区在维护,并且完全兼容MySQL,并且可以很方便的称为MySQL的替代,MariaDB的诞生正是出自MySQL创始人Michael Widenius之 ...
 - CentOS7 编译安装 nginx-1.10.0
		
对于NGINX 支持epoll模型 epoll模型的优点 定义: epoll是Linux内核为处理大批句柄而作改进的poll,是Linux下多路复用IO接口select/poll的增强版本,它能显著的 ...
 - Centos7 编译安装 Nginx PHP Mariadb Memcached 扩展 ZendOpcache扩展 (实测 笔记 Centos 7.3 + Mariadb 10.1.20 + Nginx 1.10.2 + PHP 7.1.0 + Laravel 5.3 )
		
环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7-x86_64-Minimal-1611.iso 安装步骤: 1.准备 1.0 查看硬 ...
 - CentOS7 编译安装 Mongodb  (实测 笔记 Centos 7.0 + Mongodb 2.6.6)
		
环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7.0-1406-x86_64-DVD.iso 安装步骤: 1.准备 1.1 显示系统版 ...
 
随机推荐
- 第三章:javascript: 列表
			
在日常生活中,人们经常使用列表:待办事项列表,购物清单,十佳榜单,最后十名榜单等.计算机也在使用列表,尤其是列表中元素保存的是太多时.当不需要一个很长的序列中查找元素,或对其进行排序时,列表显得尤为有 ...
 - Linux虚拟地址空间布局
			
在多任务操作系统中,每个进程都运行在属于自己的内存沙盘中.这个沙盘就是虚拟地址空间(Virtual Address Space),在32位模式下它是一个4GB的内存地址块.在Linux系统中, 内核进 ...
 - 使用python来调试串口
			
串口模块的波特率比较特别,找了几个串口工具都不支持...所以,干脆用python自己来写了,其实已经好奇好久了,别人的工具各种不顺手. 需要pyserial的支持,兼容各种平台,不需要新编译二进制文件 ...
 - Process manufacturing和Discrete manufacturing的区别
			
Process manufacturing(Process industry) 加工制造,或者加工工业.其一个重要特征是,原材料被加工成成品后,我们再也无法将它恢复成原料,比如,苹果罐头,我们再没法把 ...
 - tp 多语言支持
			
tp支持多语言 通过get来改变语言的 http://localhost/tp/index.php/Admin/User/add/hl/zh-cn http://localhost/tp/index. ...
 - 设置button不同状态下的背景色,即把这个颜色变成图片设置成,背景图片
			
- (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state { [self setBack ...
 - mybatis 使用resultMap实现关联数据的查询(association 和collection )
			
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "- ...
 - jQuery Uploadify在ASP.NET MVC中的使用
			
感谢http://www.cnblogs.com/libingql/archive/2012/09/11/2681007.html 除此之外,给大家推荐一个: http://gallery.kissy ...
 - 整理时下流行的浏览器User-Agent大全
			
总结整理时下流行的浏览器User-Agent大全 此文章转至:http://www.360doc.com/content/12/1012/21/7662927_241124973.shtml 用于学习 ...
 - linux 访问tomcat 管理页面时 You are not authorized to view this page 403(真实可用)
			
ava代码 收藏代码 You are not authorized to view this page. If you have not changed any configuration files ...