Satellite Database Creation Fails With 'psql: command not found'.
Issue
When installing Red Hat Satellite 5.7's database, it fails in the following way. This example assumes one is using Satellite's managed database installation scenario. This could happen under the embedded database scenario, too.
[root@server cdrom]# ./install.pl --managed-db
* Starting Red Hat Satellite installer.
* Performing pre-install checks.
* Pre-install checks complete. Beginning installation.
* RHN Registration.
** Registration: System is already registered with RHN. Not re-registering.
* Checking for uninstalled prerequisites.
** Checking if yum is available ...
There are some packages from Red Hat Enterprise Linux that are not part
of the @base group that Satellite will require to be installed on this
system. The installer will try resolve the dependencies automatically.
However, you may want to install these prerequisites manually.
Do you want the installer to resolve dependencies [y/N]? y
* Installing RHN packages.
Warning: more packages were installed by yum than expected:
audit-libs-python
libsemanage-python
policycoreutils-python
postgresql-libs
setools-libs
setools-libs-python
uuid
* Now running spacewalk-setup-postgresql.
Database name: rhn
Database user: rhn
Database password:
Local addresses to listen on (comma-separated, RETURN for all):
Remote addresses to allow connection from (address/netmask format, comma-separated): 192.168.1.0/24
Initializing database: [ OK ]
Starting postgresql92-postgresql service: [ OK ]
-bash: psql: command not found
-bash: createdb: command not found
Environment
Red Hat Satellite 5.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.