Page 1 of 1

Error instaling PostgreSQL

PostPosted: Wed Jan 12, 2011 2:59 pm
by jbbseabra
I install the windows 7 professional.
And then try to install postgre 9.0.2
But in the end of the instalation i get a "non fatal error"
In the log i can see this:

Script stderr:


Loading additional SQL modules...
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.0\installer\server\loadmodules.vbs" "postgres" "****" "C:\Program Files\PostgreSQL\9.0" "C:\Program Files\PostgreSQL\9.0\data" 5432
Script exit code: 2

Script output:
Installing the adminpack module in the postgres database...
Start DoCmd("C:\Program Files\PostgreSQL\9.0\bin\psql.exe" -p 5432 -U postgres -f "C:\Program Files\PostgreSQL\9.0\share\contrib\adminpack.sql" postgres)...
Executing 'C:\Users\Joao\temp\tmp\radDBCCD.bat'...
psql: could not translate host name "localhost" to address: Unknown server error

End DoCmd()
Failed to install the 'adminpack' module in the 'postgres' database
loadmodules.vbs ran to completion

Script stderr:
Program ended with an error exit code

Error running cscript //NoLogo "C:\Program Files\PostgreSQL\9.0\installer\server\loadmodules.vbs" "postgres" "****" "C:\Program Files\PostgreSQL\9.0" "C:\Program Files\PostgreSQL\9.0\data" 5432 : Program ended with an error exit code
[18:03:26] Write the data directory to the ini file...
[18:03:26] Write the port number, service ID, locale and superuser to the ini file...
[18:03:26] Write ServiceID(postgresql-x64-9.0) to registry/ini...
[18:03:26] Write Superuser to ini file and windows registry...
[18:03:26] Write Service Account to ini file and windows registry...
[18:03:26] Write the server description to the ini file...
[18:03:26] Write the server branding to the ini file...
[18:03:26] Write the 'whether stack-builder is disabled or not' to the ini file...
[18:03:26] Finished running post-installation/upgrade tasks.

Re: Error instaling PostgreSQL

PostPosted: Wed Jan 12, 2011 3:38 pm
by kraada
Click Start --> Programs --> Accessories, right click Notepad and click Run As Administrator. In Notepad open the C:\windows\system32\drivers\etc\hosts file, and at the bottom add the lines:
127.0.0.1 localhost
::1 localhost

Save the file then restart your computer and try running the installer again and it should complete successfully then.