centos 7 sdk 安裝筆記

2021-09-09 06:06:40 字數 2531 閱讀 4067

./build.sh:行6: cmake: 未找到命令

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

./configure && make && make install

/usr/temp/sdk/datamgr/libae.h:35:29: 致命錯誤:hiredis/hiredis.h:沒有那個檔案或目錄

#include "hiredis/hiredis.h"

answers:

./make && make install -ldconfig

/usr/temp/sdk/datamgr/../basedata/lockinfo.pb.h:9:42: 致命錯誤:google/protobuf/stubs/common.h:沒有那個檔案或目錄

#include

answers:

google mock not present.  fetching gmock-1.7.0 from the web...

./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:

./autogen.sh

make

make install

編譯出現cannot stat 『doc/jemalloc.html』: no such file or directory 則用 make install_lib_static

/usr/bin/ld: cannot find -llockinfo

/root/sdk/launcher/cobjectjsonreader.h:4:23: 致命錯誤:json/json.h:沒有那個檔案或目錄

#include "json/json.h"

answers:

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】源

/usr/bin/ld: cannot find -lluajit

answers:

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

[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 ****** a shared object; recompile with -fpic

CentOS7系統安裝筆記

首先,格式化硬碟。硬碟裡殘留的windows引導資訊和oem資訊會讓你的安裝變成這樣 windows下用ultraiso將映象寫入u盤後安裝程式會莫名找不到映象位置,先用legacy引導,選擇第一項,按tab,把內容改為 vmlinuz initrd initrd.img linux dd quie...

centos 7 安裝MySQL 筆記

1.安裝 wget rpm ivh mysql community release el7 5.noarch.rpm yum install mysql community server 成功安裝之後重啟mysql服務 service mysqld restart 初次安裝mysql是root賬戶是...

centos7 安裝scala筆記

安裝scala cd soft tar zxvf scala 2.12.4.tgz c usr local cd usr local 環境變數 echo export scala home usr local scala 2.12.4 etc profile echo e export path p...