我安装Apache-age时遇到了困难。

huangapple go评论59阅读模式
英文:

Im having diffuclty installing Apache-age

问题

我遵循https://age.apache.org/age-manual/master/intro/setup.html上的教程来安装apache-age。我$PATH变量上的第一个路径不是来自pg_config,所以我使用了make PG_CONFIG=/path/to/postgres/bin/pg_config install命令并手动放置了pg_config路径。但我遇到了这个错误:(https://i.stack.imgur.com/ov0G3.png)

我尝试使用sudo权限,但没有帮助,这似乎是一个C语法错误或类似的问题。

英文:

Im follow the tutorial from https://age.apache.org/age-manual/master/intro/setup.html to install the apache-age. The first path on my $PATH variable is not the one from the pg_config so i used the make PG_CONFIG=/path/to/postgres/bin/pg_config install command and putting the pg_config path myself. But im getting this error : (https://i.stack.imgur.com/ov0G3.png)

I tried using sudo privilages but it didnt help, this seems to be a C syntax error or something like that

答案1

得分: 3

使用命令 pg_config(或者 /path/to/postgres/bin/pg_config,如果它不在你的 $PATH 上)查看你正在使用的 PostgreSQL 版本。

如果你使用的是版本 12,并且正在从 Github 克隆 Apache AGE,你必须在安装 Apache AGE 之前执行以下命令:

git checkout AGE_PG12.1.0_ALPHA

因为正如分支名称所示,对版本 12 的支持仍处于 alpha 状态。

英文:

See with the command pg_config (or /path/to/postgres/bin/pg_config, if it's not on your $PATH) what is the version of PostgreSQL you're using.

If you're on version 12, and if you're cloning Apache AGE from Github, you must

git checkout AGE_PG12.1.0_ALPHA

before installing Apache AGE, as, like the branch name says, the support for version 12 is still in alpha state.

答案2

得分: 2

你之所以会收到这个错误是因为很可能你正在克隆主分支,我认为可能是由于错误地将开发代码推送到主分支。你应该使用发布版本的源代码进行安装。

英文:

You are getting this error because most probably you are cloning the master branch, and I think by mistake development code was pushed to master branch.
You should use the release version's source code to install.

答案3

得分: 0

我遇到了相同的错误。

这是因为 PostgreSQL 和 Apache AGE 之间的兼容性问题。

你必须使用之前版本的 Apache AGE。尝试克隆 AGE 的 ALPHA 分支(我使用的是 PostgreSQL 版本 12.13)。

这对我解决了问题。

英文:

I got the same error.

This is because of compatibility issues between PostgreSQL and Apache AGE.

You must be using a previous version of Apache AGE. Try cloning the ALPHA branch of AGE (I used PostgreSQL version 12.13).

This resolved the issue for me.

答案4

得分: -1

你可以按照apache-age在ubuntu上的安装指南来顺利在ubuntu上安装和运行apache-age。

以下是其中一些步骤:

要配置age与postgresql,请使用以下命令:

sudo make PG_CONFIG=.../age_installation/pg/postgresql-11.18/bin/pg_config install

然后执行以下命令:

make PG_CONFIG=.../age_installation/pg/postgresql-11.18/bin/pg_config installcheck

在上述命令中,PG_CONFIG需要指定pg_config文件的路径,而第二个命令将检查安装是否成功。

在检查命令完成后,你将收到一条消息,表示所有测试都通过。

注意:.../age_installation表示age_installation正在进行的文件夹的绝对路径。

注意:APACHE AGE最适用于postgresql 11

英文:

You can follow the procedure in apache-age installation in ubuntu to smoothly install and run apache-age on ubuntu.

Here are some of the steps:

To configure age with postgresql use the following commands

sudo make PG_CONFIG = .../age_installation/pg/postgresql-11.18/bin/pg_config install

then the following command

make PG_CONFIG = .../age_installation/pg/postgresql-11.18/bin/pg_config installcheck

> In the above commands, PG_CONFIG requires the path to the pg_config file and the second command will check whether the installation was successful or not.
>
> At the end of the check command, you will receive a message saying all tests passed.

NOTE: .../age_installation represents absolute path towards the folder where age_installation is taking place

NOTE: APACHE AGE works best with postgresql 11

huangapple
  • 本文由 发表于 2023年2月16日 19:44:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/75471775.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定