Обсуждение: Build libpq on Win7 failed with error "U1045: spawn failed"
Build libpq on Win7 failed with error "U1045: spawn failed"
От
Brilliantov Kirill Vladimirovich
Дата:
Hello! I try build postgresql-9.3.5 on Windows7 x64 with VisualStudioExpess2013. c:\postgresql-9.3.5\src>nmake -f win32.mak CPU=AMD64 Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 Copyright (C) Microsoft Corporation. All rights reserved. cd include if not exist pg_config.h copy pg_config.h.win32 pg_config.h NMAKE : fatal error U1045: spawn failed : Invalid argument Stop. Use error code I found http://support.microsoft.com/kb/276593 , but ComSpec is correct. c:\postgresql-9.3.5\src>set ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\user\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=VIRTUAL ComSpec=C:\Windows\system32\cmd.exe; FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\user LOCALAPPDATA=C:\Users\user\AppData\Local LOGONSERVER=\\VIRTUAL NUMBER_OF_PROCESSORS=2 OS=Windows_NT Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32 \WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C :\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 4 Stepping 3, AuthenticAMD PROCESSOR_LEVEL=16 PROCESSOR_REVISION=0403 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\user\AppData\Local\Temp TMP=C:\Users\user\AppData\Local\Temp USERDOMAIN=virtual USERNAME=user USERPROFILE=C:\Users\user windir=C:\Windows windows_tracing_flags=3 windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log Can you help me solve this problem? Thank you and excuse me for my bad english. -- Best regards, Brilliantov Kirill Vladimirovich
On 10/28/2014 07:10 AM, Brilliantov Kirill Vladimirovich wrote: > Hello! > I try build postgresql-9.3.5 on Windows7 x64 with VisualStudioExpess2013. > > c:\postgresql-9.3.5\src>nmake -f win32.mak CPU=AMD64 > > Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 > Copyright (C) Microsoft Corporation. All rights reserved. > > cd include > if not exist pg_config.h copy pg_config.h.win32 pg_config.h > NMAKE : fatal error U1045: spawn failed : Invalid argument > Stop. > > > Can you help me solve this problem? > Thank you and excuse me for my bad english. First let me say I have not built Postgres on Windows. I did find this: http://www.postgresql.org/docs/9.3/interactive/install-windows-full.html One thing that stands out is: "All commands should be run from the src\tools\msvc directory." You might want to read through the above documentation, as I suspect you are getting a 32/64 mismatch. -- Adrian Klaver adrian.klaver@aklaver.com
Re: Build libpq on Win7 failed with error "U1045: spawn failed"
От
Brilliantov Kirill Vladimirovich
Дата:
Adrian Klaver wrote on 10/28/2014 05:24 PM: > > First let me say I have not built Postgres on Windows. I did find this: > > http://www.postgresql.org/docs/9.3/interactive/install-windows-full.html > > One thing that stands out is: > > "All commands should be run from the src\tools\msvc directory." > > You might want to read through the above documentation, as I suspect you > are getting a 32/64 mismatch. > > > Hello, Adrian! But according with http://www.postgresql.org/docs/8.3/static/install-win32-libpq.html I should run all command in postgres src directory. For installation I use postgresql-9.3.5-3-windows-x64.exe file, for build postgresql-9.3.4.tar.bz2. -- Best regards, Brilliantov Kirill Vladimirovich
On 10/28/2014 07:37 AM, Brilliantov Kirill Vladimirovich wrote: > Adrian Klaver wrote on 10/28/2014 05:24 PM: > >> >> First let me say I have not built Postgres on Windows. I did find this: >> >> http://www.postgresql.org/docs/9.3/interactive/install-windows-full.html >> >> One thing that stands out is: >> >> "All commands should be run from the src\tools\msvc directory." >> >> You might want to read through the above documentation, as I suspect you >> are getting a 32/64 mismatch. >> >> >> > > > Hello, Adrian! > But according with > http://www.postgresql.org/docs/8.3/static/install-win32-libpq.html I > should run all command in postgres src directory. > For installation I use postgresql-9.3.5-3-windows-x64.exe file, for > build postgresql-9.3.4.tar.bz2. My mistake, I read the body of the message and did not pay attention to the subject, so I thought you where trying to build a complete version of Postgres. Someone else is going to have to take it from here, I just do not know enough about the Windows build process. > > -- Adrian Klaver adrian.klaver@aklaver.com