2012-10-27 4 views
1

postgresql에서 언어 pltcl을 만들려고했습니다. 그러나 나는이 오류를 가지고있다.postgresql에서 언어 오류 생성

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.

어떻게이 문제를 해결하려면 무엇입니까?

+0

어떻게 postgresql을 설치 했습니까? 근원에서? – thisfeller

+0

'apt-get'을 사용하여 – sat

답변

3

다른 경우 사용중인 포스트 그레스 버전으로 9.1을 바꾸고 postgresql-pltcl-9.1 패키지를 설치해야합니다.

+1

[Here] (http://packages.debian.org/search?keywords=postgresql) 데비안에서 제공하는 모든 PostgreSQL 패키지를 찾을 수 있습니다. –

관련 문제