导航

libmaxminddb安装

https://github.com/maxmind/libmaxminddb

 

ubuntu

 sudo add-apt-repository ppa:maxmind/ppa
 sudo apt update
 sudo apt install libmaxminddb0 libmaxminddb-dev mmdb-bin



今天尝试在centos上安装
1.git clone https://github.com/maxmind/libmaxminddb.git
1.1 (cmake要求3.9)
mdkir build
cd build
cmake ..
报错无libtap
1.2
./bootstrap
./configure
make
报错,无libtap

2.下载压缩包
https://github.com/maxmind/libmaxminddb/releases

./configure
make
make check
sudo make install
sudo ldconfig
这时没有报libtap的错,应该是成功了

去掉调试信息
strip file_name

https://github.com/maxmind/libmaxminddb/issues/242
https://ask.csdn.net/questions/5489388

posted on 2021-04-29 11:18  toughcactus  阅读(926)  评论(0编辑  收藏  举报