PostgreSQL-错误:无法加载库pgafis.so:未定义符号:lfsparms_V2 [英] POSTGRESQL - ERROR: could not load library pgafis.so : undefined symbol: lfsparms_V2

查看:310
本文介绍了PostgreSQL-错误:无法加载库pgafis.so:未定义符号:lfsparms_V2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PGAFIS库进行指纹匹配。为此,我已经安装了postgresql并具有一些用户定义的c函数。

I'm using PGAFIS library for fingerprint matching. For this i have installed postgresql and having some user defined c functions.

PGAFIS包含makefile,.control文件,sql和解压缩的sql文件中的所有内容

PGAFIS contain makefile, .control file, sql and unpacked sql file everything

我已经编译了pgafis.so文件,并且每个文件都位于正确的位置。

I have compiled and pgafis.so file for the same and everyfile is on right location.

在我的PGAdmin-III中,当我运行创建扩展pgafis 它给了我以下错误:

In my PGAdmin-III when i run CREATE EXTENSION pgafis it gives me following error:

ERROR: could not load library "/usr/lib/postgresql/9.4/lib/pgafis.so": /usr/lib/postgresql/9.4/lib/pgafis.so: undefined symbol: lfsparms_V2
SQL state: XX000

请帮助。预先感谢

(这是 Postgresql用户定义的c的后续操作函数问题

推荐答案

我希望您忘记链接到所需的库。

I expect you forgot to link to the required library.

尝试添加

PG_LIBS = -lmindtct

或其他。如果它不在默认链接器路径上,则需要将 -L / path / to / the / the / contains / directory 添加到 PG_CPPFLAGS

or whatever. If it's not on the default linker path you'll need to need to add -L/path/to/the/containing/directory to PG_CPPFLAGS too.

这篇关于PostgreSQL-错误:无法加载库pgafis.so:未定义符号:lfsparms_V2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆