Oooops !! I just noticed that I forgot the step where you have to do a "/usr/local/pgsql/bin/initdb". I really apologize for this... I totally spaced here.
Bring postmaster down, do an initdb, start postmaster again and then try your createdb and it should work.
We will be releasing another version of the docs with these quirks fixed in the upcoming OpenACS 3.2.4 that should be released this or next week.