我还无法在我们的虚拟服务器上正确地重新安装PostgreSQL + PostGIS。
安装PostgreSQL过程结束时会发生以下错误:
“加载数据库模块时发生了非致命错误。请在C:.\Temp中查看安装日志以获得详细信息。”
下面是日志中的内容:
Loading additional SQL modules...
Executing cscript //NoLogo "C:\Programme\PostgreSQL\9.0\installer\server\loadmodules.vbs" "postgres" "****" "C:\Programme\PostgreSQL\9.0" "C:\Programme\PostgreSQL\9.0\data" 5432
Script exit code: 2
Script output:
Installing the adminpack module in the postgres database...
Executing 'C:\DOKUME~1\Kiesow\LOKALE~1\Temp\rad3C00F.bat'...
Couldn't find the output file...
Failed to install the 'adminpack' module in the 'postgres' database
loadmodules.vbs ran to completion
Script stderr:
Program ended with an error exit code
Error running cscript //NoLogo "C:\Programme\PostgreSQL\9.0\installer\server\loadmodules.vbs" "postgres" "****" "C:\Programme\PostgreSQL\9.0" "C:\Programme\PostgreSQL\9.0\data" 5432 : Program ended with an error exit code安装完成后,我可以启动pgAdmin,登录并创建新的数据库。在我尝试使用堆栈生成器向导添加PostGIS之前,一切看起来都很好。同样,当以下情况下,安装几乎完成:
“数据库创建失败”。“是否要查看错误日志”"create_templatepostgis_db_error.txt'?“
此错误日志不存在。我可能忽略错误并手动创建模板db,这是可行的。但是我不能使用像“几何学”这样的类型,所以我认为,PostGIS还不能使用。
也许你们中有人知道我可能做错了什么?有什么暗示吗?有人能帮我解释错误日志吗?
我使用Windows,PostgreSQL 9.0 32位(与8.4相同),PostGIS 1.5。
Postgres 8.3 + PostGIS之前安装在这个系统上,但是我卸载、删除了数据目录并让安装向导创建一个新的posgres用户。
也重新启动了几次。
在Postgres安装中,我确实选择了一个地区,而不是默认的地区。
这是我怀疑的日志的另一部分。刚开始的时候是对的。也许这会有帮助:
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Data Directory. Setting variable iDataDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Base Directory. Setting variable iBaseDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Service ID. Setting variable iServiceName to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Service Account. Setting variable iServiceAccount to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Super User. Setting variable iSuperuser to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Branding. Setting variable iBranding to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Version. Setting variable brandingVer to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 Shortcuts. Setting variable iShortcut to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.0 DisableStackBuilder. Setting variable iDisableStackBuilder to empty value
[15:44:31] Existing base directory:
[15:44:31] Existing data directory:
[15:44:31] Using branding: PostgreSQL 9.0
[15:44:31] Using Super User: postgres and Service Account: postgres
[15:44:31] Using Service Name: postgresql-9.0
Executing cscript //NoLogo "C:\Dokumente und Einstellungen\Kiesow\Lokale Einstellungen\Temp\prerun_checks.vbs"
Script exit code: 0
Script output:
The scripting host appears to be functional.
Script stderr:
Executing cscript //NoLogo "C:\Dokumente und Einstellungen\Kiesow\Lokale Einstellungen\Temp\postgresql_installer\installruntimes.vbs" "C:\Dokumente und Einstellungen\Kiesow\Lokale Einstellungen\Temp\postgresql_installer\vcredist_x86.exe"
Script exit code: 3010
Script output:
Executing the runtime installer: C:\Dokumente und Einstellungen\Kiesow\Lokale Einstellungen\Temp\postgresql_installer\vcredist_x86.exe
The runtime package exited with error code: 3010发布于 2012-11-04 07:44:01
在命令提示符中,运行以下单个命令:
C:\Programme\PostgreSQL\9.0\bin\psql.exe -p 5432 -U postgres -W -f C:\Programme\PostgreSQL\9.0\share\contrib\adminpack.sql postgres
它的输出可以提供更多的信息。顺便说一句,.vbs所做的就是运行上面的内容。
发布于 2013-04-05 09:12:08
提示此错误消息的原因是由于localhost指向其他计算机。
发布于 2013-12-30 15:37:25
禁用防火墙和防病毒,并尝试重新安装它。
https://stackoverflow.com/questions/8529004
复制相似问题