在Windows上安装PostgreSQL 9:“无法在TEMP环境路径内编写”。 [英] PostgreSQL 9 install on Windows: "Unable to write inside TEMP environment path."

查看:256
本文介绍了在Windows上安装PostgreSQL 9:“无法在TEMP环境路径内编写”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在WinXP计算机上安装PostgreSQL 9(postgresql-9.0.3-1-windows.exe),并在开始时出现以下错误:

I am attempting to install PostgreSQL 9 (postgresql-9.0.3-1-windows.exe) on my WinXP machine and get the following error at the start:

围绕Google进行了一些搜索,得出了一些建议,这些建议建议 Windows脚本宿主可能已禁用。我已经检查过,并且确实启用了WSH,因此它必须是其他功能。问题是什么?

Some googling around yielded some advice that suggested Windows Scripting Host might be disabled. I've checked and WSH is definitely enabled, so it must be something else. Question is, what?

我可以在%TEMP%中看到一个名为 prerun_checks.vbs 的文件,当我尝试手动运行该文件时,我得到以下信息:

I can see a file called prerun_checks.vbs is created in %TEMP% and when I try to run this manually, I get the following:

这看起来像是权限错误。但是,我是一名管理员,已经完全控制了temp文件夹,但仍然无法使用。

Which looks like a permissions error. However, I am an Admin, and I've given myself full control of the temp folder and it's still not working.

任何帮助表示感谢。

推荐答案

在我完成上面的问题时,我们的IT部门突然出现并知道问题出在哪里:这是McAfee。它可以阻止任何内容在TEMP文件夹中运行,包括Windows脚本宿主脚本。在安装期间禁用McAfee为我解决了该问题。

As I was finishing off my question above, our IT chap turned up and knew what the problem was immediately: it's McAfee. It prevents anything from running in a TEMP folder, including Windows Scripting Host scripts. Disabling McAfee for the duration of the installation fixed the problem for me.

因此,如果您看到此问题,请尝试禁用防病毒软件。

So if you see this problem, try disabling your anti-virus.

这篇关于在Windows上安装PostgreSQL 9:“无法在TEMP环境路径内编写”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆