Windows Server 2016下PostgreSQL 15.3安装pgvector扩展失败求助
问题:Windows Server 2016下PostgreSQL 15.3安装pgvector扩展失败
环境信息
- 操作系统:Windows Server 2016(远程机器)
- PostgreSQL版本:15.3
- 需求:安装pgvector扩展,将PostgreSQL作为向量数据库使用
安装尝试及报错详情
1. 源码编译方式(nmake)
按照pgvector官方Windows安装步骤操作,首次执行命令 nmake /F Makefile.win 时触发错误:
fatal error C1083: Cannot open include file ‘crtdefs.h’: No such file or directory
后续手动添加了包含Microsoft Visual Studio和Windows Kits路径的INCLUDE、LIB环境变量(系统中crtdefs.h的路径为C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include),重新执行命令后出现新错误:
fatal error LNK1104: cannot open file 'vector.dll'
克隆的pgvector源码文件夹中不存在vector.dll文件
2. Conda安装方式
执行命令 conda install -c conda-forge pgvector 完成安装后,在PostgreSQL中执行创建vector扩展的操作时触发错误:
内容的提问来源于stack exchange,提问作者Sai Kirtana G
相关产品推荐
相关产品推荐



