centos 7 sdk 安装笔记

./build.sh:行6: cmake: 未找到命令
https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz
install
./bootstrap && make && make install

c: yum install gcc
c++: yum install gcc-c++

/usr/temp/sdk/net/netCurlClient/ObjectCurl.h:4:23: 致命错误:curl/curl.h:没有那个文件或目录
 #include "curl/curl.h"
 Answers:yum install curl-devel

/usr/bin/ld: cannot find -lz
Answers:yum install zlib*
best:  zlib-1.2.8.tar.gz
note:ld -lzlib --verbose

/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
Answers:openssl, openssl-devel and openssl-static (for RHEL/Centos).
collect2: 错误:ld 返回 1
/usr/bin/ld: cannot find -lcurl
Answers:download https://curl.haxx.se/download/curl-7.45.0.tar.gz
./configure && make && make install

/usr/temp/sdk/datamgr/libae.h:35:29: 致命错误:hiredis/hiredis.h:没有那个文件或目录
 #include "hiredis/hiredis.h"
Answers: https://github.com/redis/hiredis/archive/v0.11.0.tar.gz
./make && make install -ldconfig

/usr/temp/sdk/datamgr/../basedata/lockinfo.pb.h:9:42: 致命错误:google/protobuf/stubs/common.h:没有那个文件或目录
 #include
 Answers: https://github.com/protocolbuffers/protobuf/archive/v3.0.0.tar.gz

则下载protobuf-v3.0.0.tar.gz 解压并编译 ./autogen.sh

 Google Mock not present.  Fetching gmock-1.7.0 from the web...
 https://github.com/samjabrahams/tensorflow-on-raspberry-pi/issues/42

./autogen.sh:行47: autoreconf: 未找到命令
Answers:
yum  -y install install autoconf automake libtool
 if 
then ./configure && make && make install

./autogen.sh:行48: autoreconf: 未找到命令
 Answers: yum install install autoconf automake libtool

/usr/bin/ld: cannot find -ljemalloc
 Answers: https://github.com/jemalloc/jemalloc/archive/4.5.0.tar.gz
    ./autogen.sh
    make
    make install
编译出现cannot stat ‘doc/jemalloc.html’: No such file or directory 则用 make install_lib_static

/usr/bin/ld: /usr/local/lib/libjemalloc.a(jemalloc.o): relocation R_X86_64_32S against `je_index2size_tab' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libjemalloc.a: error adding symbols: 错误的值
 Answers: 
    CPPFLAGS := -D_GNU_SOURCE -D_REENTRANT -I$(srcroot)include -I$(objroot)include –fPIC
 remove:lzib*
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libz.a: error adding symbols: 错误的值
 Answers: 
https://zlib.net/fossils/zlib-1.2.8.tar.gz
下载zlib-1.2.8.tar.gz 解压并编译
vi Makefile
CFLAGS=-O3 -DUSE_MMAP -fPIC
/usr/bin/ld: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

https://www.cyberciti.biz/faq/centos-install-zlib-devel/

/usr/bin/ld: cannot find -llockinfo

/root/sdk/launcher/CObjectJsonReader.h:4:23: 致命错误:json/json.h:没有那个文件或目录
 #include "json/json.h"
Answers:
https://github.com/open-source-parsers/jsoncpp/archive/1.6.0.tar.gz

cmake CMakeLists.txt

/usr/bin/ld: cannot find -luv
collect2: 错误:ld 返回 1
yum -y install libuv-dev
没有可用软件包 libuv*。
安装EPEL源
yum install epel-release
添加RPMforge【rpmforge】源
http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

/usr/bin/ld: cannot find -lluajit
Answers:
LuaJIT-2.1.0-beta3.tar.gz
http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
make&&make install
重新编译sdk,如果出现
cannot find -lluajit

[LUA_ERROR]server_run/public/json.lua:1: module 'cjson' not found

https://github.com/Kong/kong-cjson/archive/2.1.0.tar.gz
下载 lua-cjson-2.1.0.tar.gz 解压并编译,
编译出现 
lua_cjson.c:43:17: 致命错误:lua.h:没有那个文件或目录
 #include
 https://www.lua.org/ftp/lua-5.1.5.tar.gz

则下载lua-5.1.5.tar.gz 解压并编译 make linux
编译出现 
luaconf.h:275:31: 致命错误:readline/readline.h:没有那个文件或目录
 #include
yum install libtermcap-devel ncurses-devel libevent-devel readline-devel
yum install readline-devel
make && make install

 [LUA_ERROR]server_run/public/utility/loadtxt.lua:26: attempt to index local 'file' (a nil value)

/usr/bin/ld: cannot find -ljsoncpp
usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

你可能感兴趣的:(工具)