slony1-2.2.1安装错误

时间:2013-12-30 08:57:32

标签: postgresql makefile ubuntu-12.04 slony

我正在尝试在ubuntu 12.04 + postgresql-9.3中安装slony1-2.2.1。配置已完成,但是当我触发“make all”命令时,会显示以下错误:

root @ administrator:/home/priyatam/Desktop/icons/slony1-2.2.1# make all

make [1]:进入目录/home/priyatam/Desktop/icons/slony1-2.2.1/src' make[2]: Entering directory / home / priyatam / Desktop / icons / slony1-2.2.1 / src / parsestatements' ./test-scanner&lt; / dev / null&gt; emptytestresult.log ./test-scanner&lt; ./test_sql.sql&gt; test_sql.log ` ./test-scanner < ./cstylecomments.sql > cstylecomments.log make[2]: Leaving directory /家庭/ priyatam /桌面/图标/ slony1-2.2.1 / src目录/ parsestatements' make [2]:输入目录/home/priyatam/Desktop/icons/slony1-2.2.1/src/slon' make[2]: Nothing to be done for all'。 make [2]:离开目录/home/priyatam/Desktop/icons/slony1-2.2.1/src/slon' make[2]: Entering directory / home / priyatam / Desktop / icons / slony1-2.2.1 / src / slonik' make [2]:all'. make[2]: Leaving directory / home / priyatam / Desktop / icons / slony1-2.2.1 / src / slonik'没什么可做的 make [2]:输入目录/home/priyatam/Desktop/icons/slony1-2.2.1/src/backend' gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -fpic -I/usr/include/postgresql -c -o slony1_funcs.o slony1_funcs.c slony1_funcs.c:23:23: fatal error: miscadmin.h: No such file or directory compilation terminated. make[2]: *** [slony1_funcs.o] Error 1 make[2]: Leaving directory / home / priyatam / Desktop / icons / slony1-2.2.1 / src / backend' make [1]: * [all]错误2 make [1]:离开目录`/home/priyatam/Desktop/icons/slony1-2.2.1/src' make:* [all]错误2

请帮帮我。

1 个答案:

答案 0 :(得分:1)

答案前的几点意见。

  1. 你为什么以root身份运行“make all”? “make install”可能需要它,但请尽量避免以root用户身份运行。
  2. 为什么要在“桌面/图标/ ...”中构建源代码?难道你不觉得在六个月内你可能想再找一次吗?考虑将您的源代码放在/ usr / local / src或类似的地方。
  3. 好的 - 错误非常清楚。第23行的文件“slony1_funcs.c”尝试包含“miscadmin.h”并失败。如果你用谷歌搜索“slony postgresql miscadmin.h没有这样的文件或目录”那么你会看到几个人有同样问题的案例(并解决了它)。考虑下次搜索。

    问题是它无法找到PostgreSQL的源头。因为你在ubuntu上,所以这个包会被称为'postgresql-server-dev-9.3'。