2010-11-26 115 views
10

我从官方网站下载了安装程序postgresql-9.0.1-1-windows.exe,运行它,然后出现错误:执行出错微软VC++运行时安装无法安装PostgreSQL:在Windows XP上执行Microsoft VC++运行时安装程序时发生错误

请帮助我的人,谁知道这个错误信息的原因: 的Windows XP,SP3,戴尔Inspiron 1501,处理器:AMD闪龙3500+

+1

如果你还没有看到它:一对夫妇的原因这个错误在这里列出:http://wiki.postgresql.org/wiki/Running_&_Installing_PostgreSQL_On_Native_Windows – bernie 2010-11-26 20:20:02

回答

39

A workaround

postgresql-8.4.2-1-windows.exe --install_runtimes 0

1

尝试安装管理员身份(使用运行作为管理员)。在版本9.0中,PostgreSQL可以作为Windows管理员安装:)

+0

它没有帮助我 – vmg 2010-11-26 20:48:24

2

我有一个类似的问题,并发现,工作对我来说从Garrett_H对这个论坛的帖子修复:

http://forums.enterprisedb.com/posts/list/1747.page#6180

Go to file %windir%\inf\wsh.inf, right click and select 'Install'

re-run postgresql installer

我运行Windows XP专业版和我试图安装postgresql-8.3.17-1-windows.exe。我最初收到以下错误:

An error occurred executing the Microsoft C++ runtime installer.

1

,应特别小心您的Windows用户的文件夹名称不包含空格,PostgreSQL的(如9.2.2.1的版本)处理是不好。如果我用这个账号在WinXP安装失败,出现“发生在执行微软℃的误差++运行安装程序”消息:

“C:\ Documents和Settings \吉米(管理员)”

但运行良好与此:

“C:\ Documents和Settings \吉米管理员”

的空间的 “文件和设置” 似乎并不理会安装程序。去搞清楚。

1
Go to file %windir%\inf\wsh.inf, right click and select 'Install' 
re-run postgresql installer 

这适用于Windows XP与PostgreSQL的8.4.17-1

3

创建EXE文件的快捷方式; 右键单击快捷方式 - >在目标路径末尾添加--install_runtimes 0(例如:postgresql-9.3.1-1-windows-x64。EXE --install_runtimes 0) 保存并运行它:)

1

首先下载并安装Microsoft提供的网站虚拟C++,然后从命令--install_runtimes运行安装0

1
  1. 创建的快捷方式exe文件;

  2. 右键点击该快捷方式 - >添加在目标路径

    --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0) 
    
  3. 结束时,保存并运行它

0

我得到了相同的消息“VC++运行安装程序的问题。 ..“,同时试图在我的Windows XP Professional Service Pack 2上安装Postgres 9.4.12。

我尝试了本页中提到的所有解决方案步骤 Can't install PostgreSQL: An error occurred executing the Microsoft VC++ runtime installer on Windows XP 还取决于 http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html

这包括: - 1.尝试重新安装各种VC++安装程序。安装失败 2.重新安装Windows安装程序。没有改进 3.试图安装Windows XP Service Pack 3。安装失败 4.重新安装Microsoft提供的软件开发工具包。没有改进 5.通过regedit命令更改Windows注册表文件。没有改进

没有工作。

后来觉得很难回想起上我的Postgres 9.4.12已经奇妙之前运行Windows XP的版本... 它是Windows XP专业版Service Pack 3中,我已经从该网站下载: http://softlay.net/operating-system/windows-xp-sp3-iso-full-version-free-download.html 产品密钥也在选项卡下提供。

我将图像文件(.iso)写在CD上。我用该CD重新安装了我的Windows XP(不安装Postgres)。 我有点过于自信,并试图安装最新的Postgres 9.6.3。它安装正常,但出现了两个问题: 1.它的PgAdmin 4没有工作。 2.我的PHP 5.3.22无法检测PHP扩展文件夹中的php_pgsql.dll。 当篡改php.ini中的extension_dir等并没有改善事情时,我卸载了Postgres 9.6.3并安装了Postgres 9.4.12

现在一切都像以前一样神奇。 经验教训:1.除非确实需要,否则不要跳过升级试用版&经过测试的软件版本。 2.我始终感受到:在LINUX中,您可以升级/重新安装每个软件。一切都是可控的和可编辑的......并非如此。 我希望这有助于...

相关问题