Looks like it cannot find a file - the '*/tsearch' file. I have not experienced this problem so I cannot be certain and its a while since I did it, but try these:
- a file system search for the location of the libdir directory - try manually in the path shown above (/usr/local/src/postgresql-7.2.4/contrib/tsearch/). Once you find it check the file permissions and ownership of the directory and the files within.
- check that $libdir is referencing the correct path. Look in the sql files that you are passing to psql and check where $libdir is set and what it is set to.
- try to find 'tsearch' manually - do an 'updatedb' followed by a 'locate tsearch*'
Hope this helps.
R.