google s2 库安装配置 Posted on 2018-03-30 | Post modified 2019-11-16 | In database | Visitors 安装 openssl1.0.2 版本。 123# --prefix 用来指定 openssl 要被安装在哪里./config shared --prefix=/home/hanson/program/usrmake -j32 安装 s2 12345cmake ..# 如果想手动指定 openssl 的路径,使用如下命令。这是因为当前版本(2018/04/01)的 s2 # openssl 只支持到 1.0.2。如果使用最新1.1.0版本会编译出错。OPENSSL_ROOT_DIR=/home/hanson/program/usr/ cmake ..sudo make install # 会将 libs2.so share library 安装到 /usr/local/lib 中,头文件放入 /usr/local/include/s2 Post author: XS Zhao Post link: https://hansonzhao007.github.io/blog/google-s2-%E5%BA%93%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE/ Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 3.0 unless stating additionally.