有人能以更好的方式解释(嗯,以让假人理解的方式),或者更正确地解释如何在我的Mac M1机器上安装HyperLogLog hll扩展PostgreSQL。
运行CREATE EXTENSION hll;时
我得到:
错误:无法打开扩展控制文件"/opt/homebrew/share/postgresql/extension/hll.control":没有这样的文件或目录
我是新来的,所以这个文档https://github.com/citusdata/postgresql-hll并没有给我很大的帮助。
我安装了我需要的所有其他扩展,除了这个..。
当输入which postgres时,我得到:
/opt/homebrew/bin/postgres版本:postgres (PostgreSQL) 14.3
我看到了配置PG_CONFIG的方法,但是我不明白我到底应该在这里做什么?
我将感谢你的帮助,我希望这篇文章能对其他假人有用,如I :)
发布于 2022-10-07 09:50:30
我为自己编写了脚本,以获得最后一个包并安装它。我使用make构建它。
# check if Makefile installed
make -v
# download latest release
curl -s https://api.github.com/repos/citusdata/postgresql-hll/releases/latest \
| grep '"tarball_url":' \
| sed -E 's/.*"([^"]+)".*/\1/' \
| xargs curl -o package.tar.gz -L
# extract to hll directory
mkdir hll && tar xf package.tar.gz -C hll --strip-components 1
cd hll
# build and instll extension to postgres extensions folder
make
make install
# remove hll directory
cd ../
rm -r ./hll
# connect to PostgreSQL
psql -U postgres
# install extension in your DB
CREATE EXTENSION hll;https://stackoverflow.com/questions/72455980
复制相似问题