Forum OpenACS Q&A: Error while doing createlang on REDHAT Version 7.2

When I try to createlang pltcl I get the following error. I am using redhat 7.2 and have tried the same with postgresql version 7.1.2 and 7.1.3 (RPM, SRPM & Source also) Invariably I get the same error. Did someone else also got these errors?
[postgres@iig root]$ /usr/local/pgsql/bin/createlang pltcl acs2  
ERROR:  Load of file /usr/local/pgsql/lib/pltcl.so failed:
/usr/local/pgsql/lib/pltcl.so: undefined symbol: Tcl_CreateSlave
createlang: language installation failed
[postgres@iig root]$ 


Can someone help with these errors.

Regards

Amit
Do the following first before createlang:

copy or symlink the file

/usr/lib/pgsql/pltcl.so

to

/usr/local/pgsql/lib/pltcl.so

Hope it works.

Sincerely,

Thanks But it does not help
I ran into this the other day, and found this thread: http://archives.postgresql.org/pgsql-hackers/2001-11/msg00312.php.

Seems like you need to recompile PG, or perhaps an upgrade to PG 7.2 might work.

I encountered this with a pg_dump file created on a different system. I ended up manually editing the dump file to get rid of pltcl, because it wasn't needed, and that made things work for me (yeah, I'm lazy). /Lars

A shift to PG 7.2 solved the problem. But the dump file required some editing. Like contributing news article greater than 4000 char would give an dml error. (it was fine in releases upto 7.1.3. Manually converting the create table varibale to text solved the problem.

Thanks it did help to shift to PG 7.2