首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >postgresql中的创建语言错误

postgresql中的创建语言错误
EN

Stack Overflow用户
提问于 2012-10-27 19:19:47
回答 2查看 5.7K关注 0票数 1

我尝试在postgresql中创建一种语言pltcl。但是,我得到了这个错误。

代码语言:javascript
复制
postgres=# CREATE LANGUAGE 'pltcl';
ERROR:  could not access file "$libdir/pltcl": No such file or directory


postgres=# select * from pg_pltemplate;
 tmplname  | tmpltrusted | tmpldbacreate |      tmplhandler      |   tmplvalidator   |   tmpllibrary    | tmplacl 
-----------+-------------+---------------+-----------------------+-------------------+------------------+---------
 plpgsql   | t           | t             | plpgsql_call_handler  | plpgsql_validator | $libdir/plpgsql  | 
 pltcl     | t           | t             | pltcl_call_handler    |                   | $libdir/pltcl    | 
 pltclu    | f           | f             | pltclu_call_handler   |                   | $libdir/pltcl    | 
 plperl    | t           | t             | plperl_call_handler   | plperl_validator  | $libdir/plperl   | 
 plperlu   | f           | f             | plperl_call_handler   | plperl_validator  | $libdir/plperl   | 
 plpythonu | f           | f             | plpython_call_handler |                   | $libdir/plpython | 

在网上查过之后,我得到了答案。那是,

In order to get pltcl.so you will need to compile the postgres code using --with-tcl configure switch. pltcl does not compile by default with postgres.

如何解决这个问题?

EN

回答 2

Stack Overflow用户

发布于 2012-10-27 22:15:35

您需要安装postgresql-pltcl-9.1包,如果不同,请用您正在使用的postgres版本替换9.1。

票数 3
EN

Stack Overflow用户

发布于 2018-03-16 14:24:57

代码语言:javascript
复制
sudo apt-get install postgresql-pltcl-9.6 postgresql-plperl-9.6
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13099690

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档