I have reinstall the Postgres 8.4.1 database in Linux RedHat 5.7 and I get this errors when I run the following command (Passwords have been change)
./sdesetup -o install -d POSTGRESQL -u sde -p sdepassword -D stormdata -s localhost -l /home/sde/sdeexe100/Authorization_ArcSDE.ecp - N
[Thu Apr 5 17:58:03 2012] ev.SQLstate = 42P01
SDE DBMS Error: -37 ERROR: relation "sde.sde_layers" does not exist
LINE 1: select count(*) from stormdata.sde.sde_layers
^
[Thu Apr 5 17:58:03 2012] ev.SQLstate = 42P01
SDE DBMS Error: -37 ERROR: relation "sde.sde_server_config" does not exist
LINE 1: select count(1) from stormdata.sde.sde_server_config
^
[Thu Apr 5 17:58:03 2012] ev.SQLstate = 42P01
SDE DBMS Error: -37 ERROR: relation "sde.sde_dbtune" does not exist
LINE 1: select count(keyword) from stormdata.sde.sde_dbtune
^
[Thu Apr 5 17:58:03 2012] ev.SQLstate = 42P01
SDE DBMS Error: -37 ERROR: relation "sde.sde_server_config" does not exist
LINE 1: select count(1) from stormdata.sde.sde_server_config
^
[Thu Apr 5 17:58:03 2012] ST_GEOMETRY support being installed...
[Thu Apr 5 17:58:03 2012] ev.SQLstate = 58P01
SDE DBMS Error: -51 ERROR: could not load library "/usr/lib64/pgsql/st_geometry.so": /usr/lib64/pgsql/st_geometry.so: wrong ELF class: ELFCLASS32
[Thu Apr 5 17:58:03 2012] ST_GEOMETRY install not completed (-51).
[Thu Apr 5 17:58:03 2012] ERROR installing/upgrading ArcSDE, Error = -51