gpt4 book ai didi

linux - 为了安装 PostgreSQL 扩展,makefile 位于何处?

转载 作者:太空宇宙 更新时间:2023-11-04 11:28:11 24 4
gpt4 key购买 nike

我在此处按照开源音频识别服务器的安装说明进行操作:

https://github.com/lalinsky/acoustid-server/blob/master/README#L40

我对初始步骤进行了一些修改,这是我目前所做的

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib postgresql-server-dev-8.4
sudo apt-get install python-sqlalchemy python-werkzeug python-jinja2
sudo apt-get install python-openid python-markdown python-acoustid
sudo apt-get install python-psycopg2 python-redis

然而,对于下一步,我需要编译并安装包含的 PostgreSQL 扩展:使用以下命令

 $ cd postgresql
$ sudo make install clean
$ cd ..

当我运行 $ cd postgresql 时,我得到 bash: cd: postgresql: No such file or directory

运行 whereis postgresql 返回这些目录 postgresql:/etc/postgresql/usr/lib/postgresql/usr/include/postgresql/usr/share/postgresql 但是我可以在这些目录中找不到运行 sudo make install clean 的位置。

我从这里的 ec2 实例运行 ubuntu 12.04:http://cloud-images.ubuntu.com/precise/current/

为了安装 PostgreSQL 扩展,makefile 位于何处?

最佳答案

您必须先从 git 中 check out 源代码,然后才能编译它。

apt-get install git
git clone git://github.com/lalinsky/acoustid-server.git
cd acoustid-server/postgresql
make clean
make
sudo make install
cd ..

(最后给出的行相当于 README 中的三行 cd postgresqlsudo make clean installcd ..) .

关于linux - 为了安装 PostgreSQL 扩展,makefile 位于何处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13173761/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com