2010-11-26 118 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中,您可以升級/重新安裝每個軟件。一切都是可控的和可編輯的......並非如此。 我希望這有助於...

相關問題