按照 Ubuntu 上 Postgresql9.3 的指南,我在执行时遇到错误
make USE_PGXS=1
输出为:
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-
security -I/usr/include/mit-krb5 -fPIC -pie -DLINUX_OOM_SCORE_ADJ=0 -fno-omit-
frame-pointer -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-
aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I./ -
I/usr/include/postgresql/9.3/server -I/usr/include/postgresql/internal -
D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c
-o src/tds_fdw.o src/tds_fdw.c
src/tds_fdw.c:52:22: fatal error: sybfront.h: No such file or directory
#include <sybfront.h>
^
compilation terminated.
make: *** [src/tds_fdw.o] Error 1
我该如何修复这个问题?这里出了什么问题?
答案1
安装freetds-dev
:
sudo apt-get install freetds-dev