A follow-up to my createlang problems. I thought it might be related to
a conflict between a lib from an older version so I deleted the older
version and re-installed the newer version.
But I still get the same error:
$ createlang plpgsql JC
ERROR: stat failed on file '$libdir/plpgsql': No such file or directory
createlang: language installation failed
But the plpgsql lib exists and is in the right place:
$ pg_config --pkglibdir
/usr/local/pgsql/lib
$ ls -l /usr/local/pgsql/lib | grep plpgsql
-rwxr-xr-x 1 postgres postgres 95237 Nov 26 18:11 plpgsql.so