[Slackbuilds-users] postgresql again

Donald Allen donaldcallen at gmail.com
Wed Apr 14 16:03:30 UTC 2010

When you run the postgresql.SlackBuild, you get reminded that you need
to create a postgres group and user and you are given the commands to
do so. You comply, the postgres package builds, you install it, and
then get it running following the instructions in README.SBo.

Some time later, you use the resulting package to try to install
postgresql on another system. It installs, but when you attempt to get
it running, you can't, because you need to create the postgres group
and user, which you find out when you attempt to do

su postgres -c "initdb -D /var/lib/pgsql/data"

Except the error you get doesn't tell you how to fix the problem. So
maybe you remember enough from when you originally built the package
to dig through the postgresql.SlackBuild and figure it out.

My point is this: the reminders to create the group and user should
not occur at build time, they should occur at install time (or maybe
both, if they are really needed at build time). At the very least, the
README.SBo ought to tell you that the group- and user-creation is
needed and how to do it. It seems to be assuming that this has already
been done, which it may not be, if you are installing a package that
you created on a different system six months ago.

This issue is similar in nature to the issue I had with the gnucash
package: the package is not self-contained and should be.


More information about the SlackBuilds-users mailing list