On 2010-09-20 10:20 PM, Craig Ringer wrote:
On 21/09/2010 4:49 AM, Roedy Green wrote:
The following bug has been logged online:
Bug reference: 5667
Logged by: Roedy Green
Email address: roe...@mindprod.com
PostgreSQL version: 9.0.0.
Operating system: Windows 7, 64 bit
Description: install failure
Details:
I executed postgresql-9.0.0-1-windows_x64.exe
It died with a message:
"An error occured executing VC++ runtime installer."
I had similar problems with version 8. People gave me various things to
try. None of it worked. I gave up on PostgresSQL. I decided to try again
with v 9.0.0.
I would really like it you stopped using this flaky installer.
One might perhaps question whether your system has a part in the flakiness.
Your experience is unusual, not the norm, and there is something odd going on
with your machine if the VC++ runtime won't install.
It is a quite vanilla machine. About the only thing that could be a problem is
having some older VC++ runtimes installed. When I was discussing this before,
people seemed to think the problems I was having were common, though for some
reason mine were intractable. I just thought of something else unusual. I use
the Take Command command interpreter from JPSoft to launch the exe. Since there
are no scripts, I don't see how that would give trouble.
I don't see your name in my local mailing list archives, but they only go back
some 3 months. A Google search and an online archives search for your name and
"runtime installer" doesn't find anything relevant. Can you provide a link to
your previous question(s) in the archives so we can get some background on
this issue?
I'm sorry I don't remember. I would have simply googled PostgresSQL Forum and
asked there. The behaviour I am getting now seems the same as I got with
version 8.
It'd also help to know:
- If you run the installer from the command line as:
postgresql-9.0.0-1-windows.exe --install_runtimes 0
does it install without error?
I get much further, however it still fails.
[A screenshot is included at this point of a Pg error dialog reporting:]
"Problem running post-install step. Installation may not complete correctly. The
database cluster initialisation failed."
- If the VC++ runtime installer executes successfully when run stand-
alone? You can unpack the VC++ runtime installer by running the Pg
installer as:
postgresql-9.0.0-1-windows.exe --extract-only 1 --prefix "%TEMP%\pg9"
Now you can open an Administrator-rights cmd.exe window by hitting
Start, entering "command", waiting until "command prompt" appears,
right-clicking on it and choosing "run as administrator". Into the
cmd.exe window that appears enter:
cd "%TEMP%\pg9\installer"
dir
You'll see the Visual C++ runtime installer (vcredist) and the
vbscript used to invoke it.
Run the vbcscript by typing "install" and pressing tab, pressing
space, typing "vcredist" and pressing tab, then pressing enter.
You should get a message saying vcredist is being installed, a
progress bar, then a message saying it installed successfully.
I have not tried this yet. I gather I was only supposed to do it the installer
succeeded.
- If you have a virus scanner or software firewall on your system.
no. I just run defender in batch mode.
- If you have the same problem on a clean Windows 7 install, prior to adding a
virus scanner or other local software. I realise this might not be practical
for you to test, but it'd be useful for diagnostic purposes
I dread that. It takes days to get everything tweaked again. Would a safe-mode
install help?