安装cmake
解压压缩包
tar xvf cmake-3.28.1-linux-x86_64.tar
将cmake 添加到profile中
vi ~/.bash_profile
export PATH=/home/postgres/app/cmake-3.28.1-linux-x86_64/bin:$PATH
保存,执行
source ~/.bash_profile
安装TimescaleDB
下载timescaledb安装包并解压
编译
./bootstrap
cd ./build & make
make install
配置postgresql.conf
在数据库启动时自动加载timescale lib库
vi postgresql.conf
shared_preload_libraries = 'timescaledb'
启动
pg_ctl -D /home/postgres/data/9700 restart
创建插件
create extension timescaledb ;
问题清单
rebuild PostgreSQL using --with-openssl
-- Looking for USE_OPENSSL - not found
CMake Error at CMakeLists.txt:564 (message):
PostgreSQL was built without OpenSSL support, which TimescaleDB needs for
full compatibility. Please rebuild PostgreSQL using --with-openssl or if
you want to continue without OpenSSL, re-run bootstrap with
-DUSE_OPENSSL=0