Postgres JDBC FDW Ubuntu 14 install error: Makefile:53: ../../src/Makefile.global: Datei oder Verzeichnis nicht gefunden

Postgres JDBC FDW Ubuntu 14 install error: Makefile:53: ../../src/Makefile.global: Datei oder Verzeichnis nicht gefunden

我试过 JDBC FDWs (jdbc (atris) 和 jdbc2 (heimir sverrisson)) 在 FDW wiki page and following the source install instructions 中提到,但总是出现此错误:

root@...:/usr/share/postgresql/9.3/contrib/jdbc2_fdw-master# make clean
Makefile:53: ../../src/Makefile.global: Datei oder Verzeichnis nicht gefunden
Makefile:54: /contrib/contrib-global.mk: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um »/contrib/contrib-global.mk« zu erstellen.  Schluss.

运行 Ubuntu 14.04.3 LTS:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty

可以在 /usr/lib 文件夹中找到 Makefile.global

# locate Makefile.global
/usr/lib/postgresql/9.3/lib/pgxs/src/Makefile.global

我调整了关于内部相对路径的Makefile指向那里,但是第二个错误仍然存​​在并且contrib-global.mk无法定位:-/

我会继续尝试 MySQL FDW,但是由于我们已经使用了有问题的 Oracle FDW,所以它会坚持使用一些通用的 JDBC 驱动程序真是太好了。

尝试以下命令:

PATH=/usr/lib/postgresql/9.3/bin/:$PATH make USE_PGXS=1 clean

对我有用。