Error instaling PostgreSQL

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Error instaling PostgreSQL

Postby jbbseabra » Wed Jan 12, 2011 2:59 pm

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.
jbbseabra
 
Posts: 1
Joined: Sun Feb 22, 2009 4:58 pm

Re: Error instaling PostgreSQL

Postby kraada » Wed Jan 12, 2011 3:38 pm

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.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 19 guests

cron
highfalutin