我正在开发一个 PostgresDB 插件。该插件在 Centos 6.3 的 Postgres 中运行。为了能够编译我的项目,我必须安装一些来自 epel 存储库的库和一些来自 rpmforge 的库。有趣的是,有些软件包在两个存储库中都是重复的,例如:
# yum whatprovides postgis
Loaded plugins: fastestmirror, presto, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: mirror2.hs-esslingen.de
* epel: mirror.awanti.com
* extras: mirror2.hs-esslingen.de
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.netcologne.de
postgis-1.5.3-1.el6.x86_64 : Geographic Information Systems Extensions to
: PostgreSQL
Repo : epel
Matched from:
postgis-1.3.6-1.el6.rf.x86_64 : Geographic Information Systems Extensions to
: PostgreSQL
Repo : rpmforge
Matched from:
Run Code Online (Sandbox Code Playgroud)
现在我的项目可以编译,但不会与缺少的引用链接:
/usr/pgsql-9.1/lib/postgis-1.5.so: undefined reference to `accumArrayResult' …
Run Code Online (Sandbox Code Playgroud)