上一篇已經(jīng)部署好linux下需要安裝的編譯工具了必盖,下面直接cmake,然后理所當(dāng)然地報(bào)錯(cuò)了。
看上去應(yīng)該是需要openladp,編譯安裝試試
CMake Error at cmake/find/ldap.cmake:75 (message):
Cannot enable LDAP support
Call Stack (most recent call first):
CMakeLists.txt:503 (include)
先編譯dbd
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -zxvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/
cd build_unix
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication
make
make install
編譯regex
wget https://ftp.gnu.org/pub/old-gnu/regex/regex-0.12.tar.gz
tar -zxvf regex-0.12.tar.gz
./configure
make subdirs=
ar ru libregex.a regex.o
mkdir -p /usr/local/mingw/include
mkdir -p /usr/local/mingw/lib
cp regex.h /usr/local/mingw/include
cp libregex.a /usr/local/mingw/lib
安裝gdbm libtool
pacman -S libtool gdbm
安裝openldap
msys 不能解壓有軟鏈接的包饵隙,所以需要下載源碼到本地,解壓了在放到/usr/src/ldap里
https://www.openldap.org/software/download/
cd /usr/src/ldap
env CPPFLAGS=-I/usr/local/mingw/include LDFLAGS=-L/usr/local/mingw/lib #這里主要是regex的環(huán)境變量
./configure --prefix=/usr/local/mingw
make depend
make
make install