标签:command enter level auto https dep ssdb comm cert
安装ssdb
1 wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip 2 unzip master 3 cd ssdb-master 4 make
报以下错误
ERROR! autoconf required! install autoconf first
Makefile:4: build_config.mk: No such file or directory
make: *** No rule to make target `build_config.mk‘. Stop.
安装 autoconf
yum update
yum install -y autoconf
安装autoconf成功后,继续make
1 make
报以下错误
make[1]: Entering directory `/root/ssdb-master/deps/leveldb-1.18‘
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -DSNAPPY -I../snappy-1.1.0 -O2 -DNDEBUG -c db/builder.cc -o db/builder.o
make[1]: g++: Command not found
make[1]: *** [db/builder.o] Error 127
make[1]: Leaving directory `/root/ssdb-master/deps/leveldb-1.18‘
make: *** [all] Error 2
安装g++
yum -y install gcc+ gcc-c++
安装g++成功后,继续make
1 make
报以下错误
g++: error: /root/ssdb-master/deps/snappy-1.1.0/.libs/libsnappy.a: No such file or directory
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/ssdb-master/src‘
make: *** [all] Error 2
这是因为 snappy 没有编译成功, 这一般是因为你的系统时钟有问题. 可以这样解决
1 cd deps/snappy-1.1.0; 2 ./configure 3 make
安装Snappy成功后,返回到ssdb-master目录
1 cd ../.. 2 make 3 make install
这样ssdb就安装成功了。
标签:command enter level auto https dep ssdb comm cert
原文地址:http://www.cnblogs.com/zhuhaichan/p/7730745.html