Forum OpenACS Q&A: Re: ERROR: Relation "apm_package_db_types" does not exist

I kept getting this error and finally found that postgres was dying because is was statically linked with the wrong version of libreadline. Try running a psql (yourdatabasename) as the user that the web site is running as and see if you get any errors. If that goes well try loadin the kernel data model fount in the packages/acs-kernel/sql/postgresql/acs-kernel-create.sql file directly from the database.