先按照教程安装出现如下错误

fu@fu-MS-7846:~/sdk/rethinkdb-2.3.6$ source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
deb http://download.rethinkdb.com/apt bionic main
fu@fu-MS-7846:~/sdk/rethinkdb-2.3.6$ wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
OK
fu@fu-MS-7846:~/sdk/rethinkdb-2.3.6$ sudo apt-get update
命中:1 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease
命中:2 http://cn.archive.ubuntu.com/ubuntu bionic InRelease                    
命中:3 http://security.ubuntu.com/ubuntu bionic-security InRelease             
忽略:4 http://download.rethinkdb.com/apt bionic InRelease                      
命中:5 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease    
错误:6 http://download.rethinkdb.com/apt bionic Release                
  404  Not Found [IP: 72.14.189.19 80]
命中:7 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease  
正在读取软件包列表... 完成   
E: 仓库 “http://download.rethinkdb.com/apt bionic Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

搜到一篇文章把 http 改成 https 了,问题依旧,然后换源码安装

源码总是 make 失败,都是按照官方网站上的安装的,实在没头绪

In file included from src/rdb_protocol/geo/s2/s2.cc:197:0:
./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:502:10: error: field ‘bn_’ has incomplete type ‘BIGNUM {aka bignum_st}’
   BIGNUM bn_;
          ^~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from ./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:103,
                 from src/rdb_protocol/geo/s2/s2.cc:197:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
 typedef struct bignum_st BIGNUM;
                ^~~~~~~~~
In file included from src/rdb_protocol/geo/s2/s2.cc:197:0:
./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h: In constructor ‘geo::ExactFloat::ExactFloat()’:
./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:562:3: error: ‘BN_init’ was not declared in this scope
   BN_init(&bn_);
   ^~~~~~~
./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:562:3: note: suggested alternative: ‘BN_print’
   BN_init(&bn_);
   ^~~~~~~
   BN_print
src/build.mk:390: recipe for target 'build/release/obj/rdb_protocol/geo/s2/s2.o' failed
make[1]: *** [build/release/obj/rdb_protocol/geo/s2/s2.o] Error 1
Makefile:52: recipe for target 'make' failed
make: *** [make] Error 2


↙↙↙阅读原文可查看相关链接,并与作者交流