加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

在PostgreSQL上创建不重要的扩展时出错

发布时间:2020-12-13 16:44:18 所属栏目:百科 来源:网络整理
导读:我试图配置PostgreSQL在我的rails应用程序中使用全文搜索,如本 Railscast所述。 我使用一个新鲜的Ubuntu 12.04服务器运行PostgreSQL 9.1.5使用apt-get与ppa:pitti / postgresql精确安装。 我试图运行迁移时,当我尝试在同一个命令在psql控制台与对等postgr
我试图配置PostgreSQL在我的rails应用程序中使用全文搜索,如本 Railscast所述。

我使用一个新鲜的Ubuntu 12.04服务器运行PostgreSQL 9.1.5使用apt-get与ppa:pitti / postgresql精确安装。

我试图运行迁移时,当我尝试在同一个命令在psql控制台与对等postgres用户时,得到以下错误:

postgres=# CREATE EXTENSION unaccent;

ERROR: could not open extension control file “/usr/share/postgresql/9.1/extension/unaccent.control”:
No such file or directory

在我运行Ubuntu 10.04桌面的本地盒子中,我使用相同的存储库(natty),它运行良好。

任何见解将非常感谢。

您需要首先在系统中安装软件包 postgresql-contrib-9.1(适应您的版本号)。这是在Debian,Ubuntu&朋友反正。使用具有必要权限的系统用户:
apt-get install postgresql-contrib-9.1

如果您当前登录的用户没有必要的权限(但sudo权限):

sudo apt-get install postgresql-contrib-9.1

引用PostgreSQL Apt Repository:

If the version included in your version of Debian is not the one you
want,you can use the PostgreSQL Apt Repository.

有basic install instructions on the Postgres website为ann可用的操作系统。

对于使用unrecent的重音不敏感索引考虑这个相关问题:

> Does PostgreSQL support “accent insensitive” collations?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读