无法在Windows 8.1上安装Postgres

时间:2014-07-28 20:59:42

标签: postgresql postgresql-9.3

我正在尝试安装postgres,以便我可以将它与我的rails应用程序一起使用。我下载了postgres 9.3的安装程序。在安装过程结束时,弹出以下警告

Problem running post-install step. Installation may not complete correctly. Error reading file C:\Program Files\PostgreSQL\9.3\data\postgresql.conf

我对任何与数据库相关的东西都相当新(使用默认的sqlite for rails),所以如果你能提供一个非常感激的详细解释

以下内容来自install-postgresql.log

Log started 07/28/2014 at 19:52:53
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Executing C:\Users\Jack Hou\AppData\Local\Temp/postgresql_installer_32baa80030/temp_check_comspec.bat 
Script exit code: 0

Script output:
 "test ok"

Script stderr:


Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Data Directory. Setting variable iDataDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Base Directory. Setting variable iBaseDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Service ID. Setting variable iServiceName to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Service Account. Setting variable iServiceAccount to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Super User. Setting variable iSuperuser to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Branding. Setting variable iBranding to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Version. Setting variable brandingVer to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 Shortcuts. Setting variable iShortcut to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.3 DisableStackBuilder. Setting variable iDisableStackBuilder to empty value
[19:52:57] Existing base directory: 
[19:52:57] Existing data directory: 
[19:52:57] Using branding: PostgreSQL 9.3
[19:52:57] Using Super User: postgres and Service Account: NT AUTHORITY\NetworkService
[19:52:57] Using Service Name: postgresql-x64-9.3
Executing cscript //NoLogo "C:\Users\Jack Hou\AppData\Local\Temp\postgresql_installer_32baa80030\prerun_checks.vbs"
Script exit code: 0

Script output:
 The scripting host appears to be functional.

Script stderr:


Executing C:\Users\Jack Hou\AppData\Local\Temp\postgresql_installer_32baa80030\vcredist_x64.exe /passive /norestart
Script exit code: 0

Script output:


Script stderr:


Executing C:\Users\Jack Hou\AppData\Local\Temp\postgresql_installer_32baa80030\getlocales.exe 
Script exit code: 0

Script output:
 AfrikaansxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Afrikaans, South Africa
AlbanianxxCOMMAxxxxSPxxAlbania=Albanian, Albania
AlsatianxxCOMMAxxxxSPxxFrance=Alsatian, France
AmharicxxCOMMAxxxxSPxxEthiopia=Amharic, Ethiopia
ArabicxxCOMMAxxxxSPxxAlgeria=Arabic, Algeria
ArabicxxCOMMAxxxxSPxxBahrain=Arabic, Bahrain
ArabicxxCOMMAxxxxSPxxEgypt=Arabic, Egypt
ArabicxxCOMMAxxxxSPxxIraq=Arabic, Iraq
ArabicxxCOMMAxxxxSPxxJordan=Arabic, Jordan
ArabicxxCOMMAxxxxSPxxKuwait=Arabic, Kuwait
ArabicxxCOMMAxxxxSPxxLebanon=Arabic, Lebanon
ArabicxxCOMMAxxxxSPxxLibya=Arabic, Libya
ArabicxxCOMMAxxxxSPxxMorocco=Arabic, Morocco
ArabicxxCOMMAxxxxSPxxOman=Arabic, Oman
ArabicxxCOMMAxxxxSPxxQatar=Arabic, Qatar
ArabicxxCOMMAxxxxSPxxSaudixxSPxxArabia=Arabic, Saudi Arabia
ArabicxxCOMMAxxxxSPxxSyria=Arabic, Syria
ArabicxxCOMMAxxxxSPxxTunisia=Arabic, Tunisia
ArabicxxCOMMAxxxxSPxxUxxDOTxxAxxDOTxxExxDOTxx=Arabic, U.A.E.
ArabicxxCOMMAxxxxSPxxYemen=Arabic, Yemen
ArmenianxxCOMMAxxxxSPxxArmenia=Armenian, Armenia
AssamesexxCOMMAxxxxSPxxIndia=Assamese, India
AzerbaijanixxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxAzerbaijan=Azerbaijani (Cyrillic), Azerbaijan
AzerbaijanixxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxAzerbaijan=Azerbaijani (Latin), Azerbaijan
BanglaxxCOMMAxxxxSPxxBangladesh=Bangla, Bangladesh
BanglaxxCOMMAxxxxSPxxIndia=Bangla, India
BashkirxxCOMMAxxxxSPxxRussia=Bashkir, Russia
BasquexxCOMMAxxxxSPxxSpain=Basque, Spain
BelarusianxxCOMMAxxxxSPxxBelarus=Belarusian, Belarus
BosnianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Bosnian (Cyrillic), Bosnia and Herzegovina
BosnianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Bosnian (Latin), Bosnia and Herzegovina
BretonxxCOMMAxxxxSPxxFrance=Breton, France
BulgarianxxCOMMAxxxxSPxxBulgaria=Bulgarian, Bulgaria
BurmesexxCOMMAxxxxSPxxMyanmar=Burmese, Myanmar
CatalanxxCOMMAxxxxSPxxSpain=Catalan, Spain
CentralxxSPxxAtlasxxSPxxTamazightxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxAlgeria=Central Atlas Tamazight (Latin), Algeria
CentralxxSPxxAtlasxxSPxxTamazightxxSPxxxxOBxxTifinaghxxCBxxxxCOMMAxxxxSPxxMorocco=Central Atlas Tamazight (Tifinagh), Morocco
CentralxxSPxxKurdishxxCOMMAxxxxSPxxIraq=Central Kurdish, Iraq
CherokeexxCOMMAxxxxSPxxUnitedxxSPxxStates=Cherokee, United States
ChinesexxSPxxxxOBxxSimplifiedxxCBxxxxCOMMAxxxxSPxxChina=Chinese (Simplified), China
ChinesexxSPxxxxOBxxSimplifiedxxCBxxxxCOMMAxxxxSPxxSingapore=Chinese (Simplified), Singapore
ChinesexxSPxxxxOBxxTraditionalxxCBxxxxCOMMAxxxxSPxxHongxxSPxxKongxxSPxxSAR=Chinese (Traditional), Hong Kong SAR
ChinesexxSPxxxxOBxxTraditionalxxCBxxxxCOMMAxxxxSPxxMacaoxxSPxxSAR=Chinese (Traditional), Macao SAR
ChinesexxSPxxxxOBxxTraditionalxxCBxxxxCOMMAxxxxSPxxTaiwan=Chinese (Traditional), Taiwan
CorsicanxxCOMMAxxxxSPxxFrance=Corsican, France
CroatianxxCOMMAxxxxSPxxCroatia=Croatian, Croatia
CroatianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Croatian (Latin), Bosnia and Herzegovina
CzechxxCOMMAxxxxSPxxCzechxxSPxxRepublic=Czech, Czech Republic
DanishxxCOMMAxxxxSPxxDenmark=Danish, Denmark
DarixxCOMMAxxxxSPxxAfghanistan=Dari, Afghanistan
DivehixxCOMMAxxxxSPxxMaldives=Divehi, Maldives
DutchxxCOMMAxxxxSPxxBelgium=Dutch, Belgium
DutchxxCOMMAxxxxSPxxNetherlands=Dutch, Netherlands
EnglishxxCOMMAxxxxSPxxAustralia=English, Australia
EnglishxxCOMMAxxxxSPxxBelize=English, Belize
EnglishxxCOMMAxxxxSPxxCanada=English, Canada
EnglishxxCOMMAxxxxSPxxCaribbean=English, Caribbean
EnglishxxCOMMAxxxxSPxxHongxxSPxxKong=English, Hong Kong
EnglishxxCOMMAxxxxSPxxIndia=English, India
EnglishxxCOMMAxxxxSPxxIreland=English, Ireland
EnglishxxCOMMAxxxxSPxxJamaica=English, Jamaica
EnglishxxCOMMAxxxxSPxxMalaysia=English, Malaysia
EnglishxxCOMMAxxxxSPxxNewxxSPxxZealand=English, New Zealand
EnglishxxCOMMAxxxxSPxxPhilippines=English, Philippines
EnglishxxCOMMAxxxxSPxxSingapore=English, Singapore
EnglishxxCOMMAxxxxSPxxSouthxxSPxxAfrica=English, South Africa
EnglishxxCOMMAxxxxSPxxTrinidadxxSPxxandxxSPxxTobago=English, Trinidad and Tobago
EnglishxxCOMMAxxxxSPxxUnitedxxSPxxKingdom=English, United Kingdom
EnglishxxCOMMAxxxxSPxxUnitedxxSPxxStates=English, United States
EnglishxxCOMMAxxxxSPxxZimbabwe=English, Zimbabwe
EstonianxxCOMMAxxxxSPxxEstonia=Estonian, Estonia
FaroesexxCOMMAxxxxSPxxFaroexxSPxxIslands=Faroese, Faroe Islands
FilipinoxxCOMMAxxxxSPxxPhilippines=Filipino, Philippines
FinnishxxCOMMAxxxxSPxxFinland=Finnish, Finland
FrenchxxCOMMAxxxxSPxxBelgium=French, Belgium
FrenchxxCOMMAxxxxSPxxCameroon=French, Cameroon
FrenchxxCOMMAxxxxSPxxCanada=French, Canada
FrenchxxCOMMAxxxxSPxxCongoxxSPxx[DRC]=French, Congo [DRC]
FrenchxxCOMMAxxxxSPxxFrance=French, France
FrenchxxCOMMAxxxxSPxxHaiti=French, Haiti
FrenchxxCOMMAxxxxSPxxIvoryxxSPxxCoast=French, Ivory Coast
FrenchxxCOMMAxxxxSPxxLuxembourg=French, Luxembourg
FrenchxxCOMMAxxxxSPxxMali=French, Mali
FrenchxxCOMMAxxxxSPxxMorocco=French, Morocco
FrenchxxCOMMAxxxxSPxxPrincipalityxxSPxxofxxSPxxMonaco=French, Principality of Monaco
FrenchxxCOMMAxxxxSPxxRéunion=French, Réunion
FrenchxxCOMMAxxxxSPxxSenegal=French, Senegal
FrenchxxCOMMAxxxxSPxxSwitzerland=French, Switzerland
FrisianxxCOMMAxxxxSPxxNetherlands=Frisian, Netherlands
FulahxxCOMMAxxxxSPxxSenegal=Fulah, Senegal
GalicianxxCOMMAxxxxSPxxSpain=Galician, Spain
GeorgianxxCOMMAxxxxSPxxGeorgia=Georgian, Georgia
GermanxxCOMMAxxxxSPxxAustria=German, Austria
GermanxxCOMMAxxxxSPxxGermany=German, Germany
GermanxxCOMMAxxxxSPxxLiechtenstein=German, Liechtenstein
GermanxxCOMMAxxxxSPxxLuxembourg=German, Luxembourg
GermanxxCOMMAxxxxSPxxSwitzerland=German, Switzerland
GreekxxCOMMAxxxxSPxxGreece=Greek, Greece
GreenlandicxxCOMMAxxxxSPxxGreenland=Greenlandic, Greenland
GuaranixxCOMMAxxxxSPxxParaguay=Guarani, Paraguay
GujaratixxCOMMAxxxxSPxxIndia=Gujarati, India
HausaxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxNigeria=Hausa (Latin), Nigeria
HawaiianxxCOMMAxxxxSPxxUnitedxxSPxxStates=Hawaiian, United States
HebrewxxCOMMAxxxxSPxxIsrael=Hebrew, Israel
HindixxCOMMAxxxxSPxxIndia=Hindi, India
HungarianxxCOMMAxxxxSPxxHungary=Hungarian, Hungary
IcelandicxxCOMMAxxxxSPxxIceland=Icelandic, Iceland
IgboxxCOMMAxxxxSPxxNigeria=Igbo, Nigeria
IndonesianxxCOMMAxxxxSPxxIndonesia=Indonesian, Indonesia
InuktitutxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxCanada=Inuktitut (Latin), Canada
InuktitutxxSPxxxxOBxxSyllabicsxxCBxxxxCOMMAxxxxSPxxCanada=Inuktitut (Syllabics), Canada
IrishxxCOMMAxxxxSPxxIreland=Irish, Ireland
ItalianxxCOMMAxxxxSPxxItaly=Italian, Italy
ItalianxxCOMMAxxxxSPxxSwitzerland=Italian, Switzerland
JapanesexxCOMMAxxxxSPxxJapan=Japanese, Japan
KannadaxxCOMMAxxxxSPxxIndia=Kannada, India
KazakhxxCOMMAxxxxSPxxKazakhstan=Kazakh, Kazakhstan
KhmerxxCOMMAxxxxSPxxCambodia=Khmer, Cambodia
KinyarwandaxxCOMMAxxxxSPxxRwanda=Kinyarwanda, Rwanda
KiswahilixxCOMMAxxxxSPxxKenya=Kiswahili, Kenya
KonkanixxCOMMAxxxxSPxxIndia=Konkani, India
KoreanxxCOMMAxxxxSPxxKorea=Korean, Korea
KyrgyzxxCOMMAxxxxSPxxKyrgyzstan=Kyrgyz, Kyrgyzstan
LaoxxCOMMAxxxxSPxxLaoxxSPxxPDR=Lao, Lao PDR
LatvianxxCOMMAxxxxSPxxLatvia=Latvian, Latvia
LithuanianxxCOMMAxxxxSPxxLithuania=Lithuanian, Lithuania
LowerxxSPxxSorbianxxCOMMAxxxxSPxxGermany=Lower Sorbian, Germany
LuxembourgishxxCOMMAxxxxSPxxLuxembourg=Luxembourgish, Luxembourg
MacedonianxxSPxxxxOBxxFormerxxSPxxYugoslavxxSPxxRepublicxxSPxxofxxSPxxMacedoniaxxCBxxxxCOMMAxxxxSPxxMacedoniaxxSPxxxxOBxxFormerxxSPxxYugoslavxxSPxxRepublicxxSPxxofxxSPxxMacedoniaxxCBxx=Macedonian (Former Yugoslav Republic of Macedonia), Macedonia (Former Yugoslav Republic of Macedonia)
MalayalamxxCOMMAxxxxSPxxIndia=Malayalam, India
MalayxxCOMMAxxxxSPxxBruneixxSPxxDarussalam=Malay, Brunei Darussalam
MalayxxCOMMAxxxxSPxxMalaysia=Malay, Malaysia
MaltesexxCOMMAxxxxSPxxMalta=Maltese, Malta
MaorixxCOMMAxxxxSPxxNewxxSPxxZealand=Maori, New Zealand
MapudungunxxCOMMAxxxxSPxxChile=Mapudungun, Chile
MarathixxCOMMAxxxxSPxxIndia=Marathi, India
MohawkxxCOMMAxxxxSPxxCanada=Mohawk, Canada
MongolianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxMongolia=Mongolian (Cyrillic), Mongolia
MongolianxxSPxxxxOBxxTraditionalxxSPxxMongolianxxCBxxxxCOMMAxxxxSPxxChina=Mongolian (Traditional Mongolian), China
MongolianxxSPxxxxOBxxTraditionalxxSPxxMongolianxxCBxxxxCOMMAxxxxSPxxMongolia=Mongolian (Traditional Mongolian), Mongolia
NepalixxCOMMAxxxxSPxxIndia=Nepali, India
NepalixxCOMMAxxxxSPxxNepal=Nepali, Nepal
NorwegianxxSPxxxxOBxxBokmålxxCBxxxxCOMMAxxxxSPxxNorway=Norwegian (Bokmål), Norway
NorwegianxxSPxxxxOBxxNynorskxxCBxxxxCOMMAxxxxSPxxNorway=Norwegian (Nynorsk), Norway
OccitanxxCOMMAxxxxSPxxFrance=Occitan, France
OdiaxxCOMMAxxxxSPxxIndia=Odia, India
OromoxxCOMMAxxxxSPxxEthiopia=Oromo, Ethiopia
PashtoxxCOMMAxxxxSPxxAfghanistan=Pashto, Afghanistan
PersianxxCOMMAxxxxSPxxIran=Persian, Iran
PolishxxCOMMAxxxxSPxxPoland=Polish, Poland
PortuguesexxCOMMAxxxxSPxxBrazil=Portuguese, Brazil
PortuguesexxCOMMAxxxxSPxxPortugal=Portuguese, Portugal
PunjabixxCOMMAxxxxSPxxIndia=Punjabi, India
PunjabixxCOMMAxxxxSPxxPakistan=Punjabi, Pakistan
QuechuaxxCOMMAxxxxSPxxBolivia=Quechua, Bolivia
QuechuaxxCOMMAxxxxSPxxPeru=Quechua, Peru
QuichuaxxCOMMAxxxxSPxxEcuador=Quichua, Ecuador
RomanianxxCOMMAxxxxSPxxMoldova=Romanian, Moldova
RomanianxxCOMMAxxxxSPxxRomania=Romanian, Romania
RomanshxxCOMMAxxxxSPxxSwitzerland=Romansh, Switzerland
RussianxxCOMMAxxxxSPxxRussia=Russian, Russia
SakhaxxCOMMAxxxxSPxxRussia=Sakha, Russia
SamixxSPxxxxOBxxInarixxCBxxxxCOMMAxxxxSPxxFinland=Sami (Inari), Finland
SamixxSPxxxxOBxxLulexxCBxxxxCOMMAxxxxSPxxNorway=Sami (Lule), Norway
SamixxSPxxxxOBxxLulexxCBxxxxCOMMAxxxxSPxxSweden=Sami (Lule), Sweden
SamixxSPxxxxOBxxNorthernxxCBxxxxCOMMAxxxxSPxxFinland=Sami (Northern), Finland
SamixxSPxxxxOBxxNorthernxxCBxxxxCOMMAxxxxSPxxNorway=Sami (Northern), Norway
SamixxSPxxxxOBxxNorthernxxCBxxxxCOMMAxxxxSPxxSweden=Sami (Northern), Sweden
SamixxSPxxxxOBxxSkoltxxCBxxxxCOMMAxxxxSPxxFinland=Sami (Skolt), Finland
SamixxSPxxxxOBxxSouthernxxCBxxxxCOMMAxxxxSPxxNorway=Sami (Southern), Norway
SamixxSPxxxxOBxxSouthernxxCBxxxxCOMMAxxxxSPxxSweden=Sami (Southern), Sweden
SanskritxxCOMMAxxxxSPxxIndia=Sanskrit, India
ScottishxxSPxxGaelicxxCOMMAxxxxSPxxUnitedxxSPxxKingdom=Scottish Gaelic, United Kingdom
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Serbian (Cyrillic), Bosnia and Herzegovina
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxMontenegro=Serbian (Cyrillic), Montenegro
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxSerbia=Serbian (Cyrillic), Serbia
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxSerbiaxxSPxxandxxSPxxMontenegroxxSPxxxxOBxxFormerxxCBxx=Serbian (Cyrillic), Serbia and Montenegro (Former)
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Serbian (Latin), Bosnia and Herzegovina
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxMontenegro=Serbian (Latin), Montenegro
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxSerbia=Serbian (Latin), Serbia
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxSerbiaxxSPxxandxxSPxxMontenegroxxSPxxxxOBxxFormerxxCBxx=Serbian (Latin), Serbia and Montenegro (Former)
SesothoxxSPxxsaxxSPxxLeboaxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Sesotho sa Leboa, South Africa
SetswanaxxCOMMAxxxxSPxxBotswana=Setswana, Botswana
SetswanaxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Setswana, South Africa
SindhixxCOMMAxxxxSPxxPakistan=Sindhi, Pakistan
SinhalaxxCOMMAxxxxSPxxSrixxSPxxLanka=Sinhala, Sri Lanka
SlovakxxCOMMAxxxxSPxxSlovakia=Slovak, Slovakia
SlovenianxxCOMMAxxxxSPxxSlovenia=Slovenian, Slovenia
SomalixxCOMMAxxxxSPxxSomalia=Somali, Somalia
SouthernxxSPxxSothoxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Southern Sotho, South Africa
SpanishxxCOMMAxxxxSPxxArgentina=Spanish, Argentina
SpanishxxCOMMAxxxxSPxxBolivarianxxSPxxRepublicxxSPxxofxxSPxxVenezuela=Spanish, Bolivarian Republic of Venezuela
SpanishxxCOMMAxxxxSPxxBolivia=Spanish, Bolivia
SpanishxxCOMMAxxxxSPxxChile=Spanish, Chile
SpanishxxCOMMAxxxxSPxxColombia=Spanish, Colombia
SpanishxxCOMMAxxxxSPxxCostaxxSPxxRica=Spanish, Costa Rica
SpanishxxCOMMAxxxxSPxxDominicanxxSPxxRepublic=Spanish, Dominican Republic
SpanishxxCOMMAxxxxSPxxEcuador=Spanish, Ecuador
SpanishxxCOMMAxxxxSPxxElxxSPxxSalvador=Spanish, El Salvador
SpanishxxCOMMAxxxxSPxxGuatemala=Spanish, Guatemala
SpanishxxCOMMAxxxxSPxxHonduras=Spanish, Honduras
SpanishxxCOMMAxxxxSPxxLatinxxSPxxAmerica=Spanish, Latin America
SpanishxxCOMMAxxxxSPxxMexico=Spanish, Mexico
SpanishxxCOMMAxxxxSPxxNicaragua=Spanish, Nicaragua
SpanishxxCOMMAxxxxSPxxPanama=Spanish, Panama
SpanishxxCOMMAxxxxSPxxParaguay=Spanish, Paraguay
SpanishxxCOMMAxxxxSPxxPeru=Spanish, Peru
SpanishxxCOMMAxxxxSPxxPuertoxxSPxxRico=Spanish, Puerto Rico
SpanishxxCOMMAxxxxSPxxSpain=Spanish, Spain
SpanishxxCOMMAxxxxSPxxSpain=Spanish, Spain
SpanishxxCOMMAxxxxSPxxUnitedxxSPxxStates=Spanish, United States
SpanishxxCOMMAxxxxSPxxUruguay=Spanish, Uruguay
SwedishxxCOMMAxxxxSPxxFinland=Swedish, Finland
SwedishxxCOMMAxxxxSPxxSweden=Swedish, Sweden
SyriacxxCOMMAxxxxSPxxSyria=Syriac, Syria
TajikxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxTajikistan=Tajik (Cyrillic), Tajikistan
TamilxxCOMMAxxxxSPxxIndia=Tamil, India
TamilxxCOMMAxxxxSPxxSrixxSPxxLanka=Tamil, Sri Lanka
TatarxxCOMMAxxxxSPxxRussia=Tatar, Russia
TeluguxxCOMMAxxxxSPxxIndia=Telugu, India
ThaixxCOMMAxxxxSPxxThailand=Thai, Thailand
TibetanxxCOMMAxxxxSPxxChina=Tibetan, China
TigrinyaxxCOMMAxxxxSPxxEritrea=Tigrinya, Eritrea
TigrinyaxxCOMMAxxxxSPxxEthiopia=Tigrinya, Ethiopia
TsongaxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Tsonga, South Africa
TurkishxxCOMMAxxxxSPxxTurkey=Turkish, Turkey
TurkmenxxCOMMAxxxxSPxxTurkmenistan=Turkmen, Turkmenistan
UkrainianxxCOMMAxxxxSPxxUkraine=Ukrainian, Ukraine
UpperxxSPxxSorbianxxCOMMAxxxxSPxxGermany=Upper Sorbian, Germany
UrduxxCOMMAxxxxSPxxIndia=Urdu, India
UrduxxCOMMAxxxxSPxxPakistan=Urdu, Pakistan
UyghurxxCOMMAxxxxSPxxChina=Uyghur, China
UzbekxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxUzbekistan=Uzbek (Cyrillic), Uzbekistan
UzbekxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxUzbekistan=Uzbek (Latin), Uzbekistan
ValencianxxCOMMAxxxxSPxxSpain=Valencian, Spain
VietnamesexxCOMMAxxxxSPxxVietnam=Vietnamese, Vietnam
WelshxxCOMMAxxxxSPxxUnitedxxSPxxKingdom=Welsh, United Kingdom
WolofxxCOMMAxxxxSPxxSenegal=Wolof, Senegal
YixxCOMMAxxxxSPxxChina=Yi, China
YorubaxxCOMMAxxxxSPxxNigeria=Yoruba, Nigeria
isiXhosaxxCOMMAxxxxSPxxSouthxxSPxxAfrica=isiXhosa, South Africa
isiZuluxxCOMMAxxxxSPxxSouthxxSPxxAfrica=isiZulu, South Africa

Script stderr:


Preparing to Install
Preparing to Install

....
....


Unpacking C:\PostgreSQL\9.3\symbols\zic.pdb
[19:53:58] Running the post-installation/upgrade actions:
[19:53:58] Write the base directory to the ini file...
[19:53:58] Write the version number to the ini file...
Initialising the database cluster (this may take a few minutes)...
Executing cscript //NoLogo "C:\PostgreSQL\9.3/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\PostgreSQL\9.3" "C:\PostgreSQL\9.3\data" 5432 "DEFAULT" 0
Script exit code: 0

Script output:
 WScript.Shell Initialized...
Scripting.FileSystemObject initialized...

Called CreateDirectory(C:\PostgreSQL\9.3\data)...
Called CreateDirectory(C:\PostgreSQL\9.3)...
WScript.Network initialized...
strParentOfDataDirC:\PostgreSQL\9.3
logged in userJack\Jack
Called AclCheck(C:\PostgreSQL\9.3\data)
Called IsVistaOrNewer()...
    'winmgmts' object initialized...
    Version:6.3
    MajorVersion:6
Executing icacls to ensure the Jack\Jack account can read the path C:\PostgreSQL\9.3\data
    Executing batch file 'radFC267.bat'...
Called IsVistaOrNewer()...
    'winmgmts' object initialized...
    Version:6.3
    MajorVersion:6
Ensuring we can write to the data directory (using icacls) to  Jack\Jack:
    Executing batch file 'radFC267.bat'...
    Executing batch file 'radFC267.bat'...
Reading:    objConfFile is nothing...
Writing:    objConfFile is nothing...
Called AclCheck(C:\PostgreSQL\9.3\data)
Called IsVistaOrNewer()...
    'winmgmts' object initialized...
    Version:6.3
    MajorVersion:6
Executing icacls to ensure the NT AUTHORITY\NetworkService account can read the path C:\PostgreSQL\9.3\data
    Executing batch file 'radFC267.bat'...
Called IsVistaOrNewer()...
    'winmgmts' object initialized...
    Version:6.3
    MajorVersion:6
Granting service account access to the data directory (using icacls) to NT AUTHORITY\NetworkService:
    Executing batch file 'radFC267.bat'...
initcluster.vbs ran to completion

Script stderr:


Configuring database server startup...
Executing cscript //NoLogo "C:\PostgreSQL\9.3\installer\server\startupcfg.vbs" 9.3 "NT AUTHORITY\NetworkService" "****" "C:\PostgreSQL\9.3" "C:\PostgreSQL\9.3\data" "postgresql-x64-9.3"
Script exit code: 0

Script output:
 startupcfg.vbs ran to completion

Script stderr:


Creating menu shortcuts...
Executing cscript //NoLogo "C:\PostgreSQL\9.3\installer\server\createshortcuts.vbs" 9.3 "postgres" 5432 "PostgreSQL 9.3" "C:\PostgreSQL\9.3" "C:\PostgreSQL\9.3\data" "postgresql-x64-9.3"
Script exit code: 0

Script output:
 Start FixupFile(C:\PostgreSQL\9.3\scripts\serverctl.vbs)...
   Opening file for reading...
   Closing file (reading)...
   Replacing placeholders...
   Opening file for writing...
   Closing file...
  End FixupFile()...
Start FixupFile(C:\PostgreSQL\9.3\scripts\runpsql.bat)...
   Opening file for reading...
   Closing file (reading)...
   Replacing placeholders...
   Opening file for writing...
   Closing file...
  End FixupFile()...
createshortcuts.vbs ran to completion

Script stderr:


Starting the database server...
Executing cscript //NoLogo "C:\PostgreSQL\9.3\installer\server\startserver.vbs" postgresql-x64-9.3
Script exit code: 0

Script output:
 startserver.vbs ran to completion

Script stderr:


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

Script output:
 Installing the adminpack module in the postgres database...
    Executing 'C:\Users\Jack Hou\AppData\Local\Temp\rad34749.bat'...
loadmodules.vbs ran to completion

Script stderr:


[19:54:05] Write the data directory to the ini file...
[19:54:05] Write the port number, service ID, locale and superuser to the ini file...
[19:54:05] Write ServiceID(postgresql-x64-9.3) to registry/ini...
Problem running post-install step. Installation may not complete correctly
 Error reading file C:/PostgreSQL/9.3/data/postgresql.conf
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 07/28/2014 at 19:54:21

我的数据文件中的pg_log文件为空

1 个答案:

答案 0 :(得分:0)

我在Windows 7下使用Postgres 9.3.5安装程序(win-x64)遇到了同样的问题,并且能够修复它。

问题似乎是安装过程的一部分中指定的无效路径的简单问题。这是显示问题的错误日志条目(第4000行):

Executing cscript //NoLogo "C:\Program Files\Postgres\9.3/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\postgres\9.3" "C:\Program Files\Postgres\9.3\data" 5432 "DEFAULT" 0

注意正斜杠,在Windows下无效。 使用反斜杠重新运行命令非常有效。以管理员身份启动Windows命令提示符并运行:

cscript //NoLogo "C:\Program Files\Postgres\9.3\installer\server\initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\postgres\9.3" "C:\Program Files\Postgres\9.3\data" 5432 "DEFAULT" 0

查看安装程序日志,然后重新运行之后失败的所有脚本。它们有正确的斜杠,因此只需复制和粘贴即可运行。