英文:
Installing pl-debugger in Ubuntu 22.04
问题
在Ubuntu 22.04上安装pl-debugger时遇到问题,并按照此链接进行了安装。
我尝试在Ubuntu 22.04上安装pl-debugger,但遇到了下面显示的错误:
错误链接:
■ vinay@Vinay-Kumar-Tcarejo.:
$ git clone git://git.postgresql.org/git/pldebugger.git
fatal: could not create work tree dir 'pldebugger': Permission denied
$ sudo git clone git://git.postgresql.org/git/pldebugger.git Cloning into 'pldebugger'...
fatal: remote error: access denied or repository not exported: /git/pldebugger.git
如果之前有人解决过,请帮忙。
英文:
Facing issues while installing pl-debugger in Ubuntu 22.04 and following installation from this link.
I tried to install pl-debugger in Ubuntu 22.04 but facing an error shown below:
■ vinay@Vinay-Kumar-Tcarejo.:
$ git clone git://git.postgresql.org/git/pldebugger.git
fatal: could not create work tree dir 'pldebugger': Permission denied
$ sudo git clone git://git.postgresql.org/git/pldebugger.git Cloning into 'pldebugger'...
fatal: remote error: access denied or repository not exported: /git/pldebugger.git
If anyone had solved it previously, need help.
答案1
得分: 1
错误消息告诉我们可能存在访问或导出存储库的问题。您应该再次检查存储库URL,检查其可用性,并验证存储库权限。还要确保您的软件包来源或存储库是最新的。
英文:
The error message you have encountered tells us that there might be an issue with accessing or exporting the repository.
You should give the repository URL another look, check for its availability and verify the repository permissions. Also ensure that your package sources or repositories are up to date.
答案2
得分: 1
-
将 Apache Age 目录复制到 PostgreSQL 源代码树中的 "contrib/" 目录中。此目录通常位于 PostgreSQL 安装目录中。
-
打开命令提示符或终端并导航到 PostgreSQL 源代码树。
-
依次运行以下命令:
make - 该命令编译 Apache Age 扩展程序。
make install - 该命令安装 Apache Age 扩展程序。
定位 "postgresql.conf" 文件。该文件包含了 PostgreSQL 的配置设置。
-
使用文本编辑器打开 "postgresql.conf" 文件。
-
找到包含 "shared_preload_libraries" 设置的那一行。
-
修改 "shared_preload_libraries" 行以包括 Apache Age 库。例如,您可以将其更改为:
shared_preload_libraries = '$libdir/plugin_debugger'
-
将更改保存到 "postgresql.conf" 文件中。
-
重新启动 PostgreSQL 服务器以应用新的配置。
-
打开 psql 终端或您选择的任何 PostgreSQL 客户端。
-
在 psql 终端中运行以下命令:
CREATE EXTENSION pldbgapi;
此命令会安装 Apache Age 扩展程序并使其可供使用。
英文:
1)Copy the Apache Age directory to the "contrib/" directory within the PostgreSQL source tree. This directory is typically located in the PostgreSQL installation directory.
2)Open a command prompt or terminal and navigate to the PostgreSQL source tree.
3)Run the following commands in order:
make - This command compiles the Apache Age extension.
make install - This command installs the Apache Age extension.
Locate the "postgresql.conf" file. This file contains configuration settings for PostgreSQL.
4)Open the "postgresql.conf" file in a text editor.
5)Find the line that contains the "shared_preload_libraries" setting.
6)Modify the "shared_preload_libraries" line to include the Apache Age library. For example, you would change it to:
shared_preload_libraries = '$libdir/plugin_debugger'
7)Save the changes to the "postgresql.conf" file.
8)Restart the PostgreSQL server to apply the new configuration.
9)Open the psql terminal or any PostgreSQL client of your choice.
10)Run the following command within the psql terminal:
CREATE EXTENSION pldbgapi;
This command installs the Apache Age extension and makes it available for use.
答案3
得分: 1
我认为你应该使用HTTPS URL来克隆你的存储库:
git clone https://git.postgresql.org/git/pldebugger.git
英文:
I think that you should use HTTPS URL to clone your repository:
git clone https://git.postgresql.org/git/pldebugger.git
答案4
得分: 0
你可以从这里下载它:https://github.com/EnterpriseDB/pldebugger
为了访问你所提到的存储库,你需要是PostgreSQL社区的成员并具备适当的权限。
英文:
You can download it from there:
https://github.com/EnterpriseDB/pldebugger
In order to access the repository you have mentioned, you need to be a member of the PostgreSQL community and have the appropriate permissions
答案5
得分: 0
pl-debugger可以从这个链接下载。
安装过程
-
将目录复制到PostgreSQL源代码树中的contrib/目录中。
-
运行
make; make install
-
在postgresql.conf文件中,修改带有shared_preload_libraries的行
shared_preload_libraries = '$libdir/plugin_debugger'
-
重新启动服务器
-
在psql终端中运行
CREATE EXTENSION pldbgapi;
英文:
pl-debugger can be downloaded from this like.
Installation Process
-
Copy the directory to contrib/ in PostgreSQL source tree.
-
Run
make; make install
-
In the postgresql.conf file, modify the line with shared_preload_libraries
shared_preload_libraries = '$libdir/plugin_debugger'
-
Restart the server
-
Run
CREATE EXTENSION pldbgapi;
in the psql terminal.
答案6
得分: 0
你正在通过SSH克隆存储库。您必须将SSH密钥与您的帐户关联。
首先生成SSH密钥,
然后将SSH密钥添加到您的GitHub帐户。
克隆完成后,您将能够克隆存储库并按照pldebugger的文档 - GitHub - 存储库中的步骤操作。
英文:
You are cloning repo via ssh. You have to have SSH-keys associated with your account.
First generate the SSH-Keys
and then add ssh keys to your Github account.
After cloning you will be able to clone the repository and follow the steps as per pldebugger documentation - github - repo,
答案7
得分: 0
你的问题似乎与权限有关,因为您没有访问存储库或为存储库创建目录所需的权限。
一个解决方案可能是将git存储库克隆到主目录,这样就不会出现与权限相关的问题。
可以使用以下命令来完成这个操作:
git clone git://git.postgresql.org/git/pldebugger.git ~/pldebugger
英文:
Your issue seems to be related to permissions because you do not have the necessary permissions to access the repository or create a directory for the repo.
One solution could be to clone the git repository to the home directory where it won't give issues related to permissions.
This can be done using the following command:
git clone git://git.postgresql.org/git/pldebugger.git ~/pldebugger
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论