You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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
执行nmake命令时的初始错误

后续手动添加了包含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'
无法打开vector.dll的错误
克隆的pgvector源码文件夹中不存在vector.dll文件

2. Conda安装方式

执行命令 conda install -c conda-forge pgvector 完成安装后,在PostgreSQL中执行创建vector扩展的操作时触发错误:
创建vector扩展时的错误


内容的提问来源于stack exchange,提问作者Sai Kirtana G

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 12:42:46