windows server 2008 64 位 上安装 postgreSQL 、 openbravo 报错解决

windows server 2008 64 位 上安装 postgreSQL 、 openbravo 报错如下:

C:\Users\Administrator>cd C:\java\Openbravo3

C:\java\Openbravo3>ant install.source
Buildfile: C:\java\Openbravo3\build.xml

set.code.rev:

code.rev:

init:

cleanSubfolders:

clean:
   [delete] Deleting directory C:\java\Openbravo3\src-core\build\classes
   [delete] Deleting directory C:\java\Openbravo3\src-core\docs
   [delete] Deleting: C:\java\Openbravo3\src-core\lib\openbravo-core.jar

clean:

clean:

core.lib:

init:
    [mkdir] Created dir: C:\java\Openbravo3\src-core\build\classes
    [mkdir] Created dir: C:\java\Openbravo3\src-core\docs

compile:
    [javac] Compiling 124 source files to C:\java\Openbravo3\src-core\build\clas
ses

build.jar:
      [jar] Building jar: C:\java\Openbravo3\src-core\lib\openbravo-core.jar

build:

copy.core.lib:
     [copy] Copying 1 file to C:\java\Openbravo3\lib\runtime

database.lib:

init:

compile:

build.jar:

jar:

create.database:

create.database:

clean.database.POSTGRE:
      [sql] Executing commands
      [sql] Failed to execute:   DROP DATABASE openbravo
      [sql] org.postgresql.util.PSQLException: ERROR: database "openbravo" does
not exist
      [sql] 0 of 1 SQL statements executed successfully
      [sql] Executing commands
      [sql] 1 of 1 SQL statements executed successfully

prepare.database:

POSTGRE.structure:
      [sql] Executing commands
      [sql] 2 of 2 SQL statements executed successfully
      [sql] Executing commands
      [sql] 1 of 1 SQL statements executed successfully

create.database.all:
Database connection: jdbc:postgresql://localhost:5432/openbravo. User: tad

Executing default prescript

SQL Command failed with: ERROR: could not load library "C:/Program Files (x86)/PostgreSQL/9.2/lib/uuid-ossp.dll": The application has failed to start because it
s side-by-side configuration is incorrect. Please see the application event log
for more detail.


-- END


CREATE OR REPLACE FUNCTION uuid_generate_v4()
RETURNS uuid
AS '$libdir/uuid-ossp', 'uuid_generate_v4'
VOLATILE STRICT LANGUAGE C;

CREATE OR REPLACE FUNCTION get_uuid()
  RETURNS varchar AS
$BODY$ DECLARE
/*************************************************************************
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
* Version 1.1  with a permitted attribution clause; you may not  use this
* file except in compliance with the License. You  may  obtain  a copy of
* the License at http://www.openbravo.com/legal/license.html
* Software distributed under the License  is  distributed  on  an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific  language  governing  rights  and  limitations
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
* All portions are Copyright (C) 2008-2009 Openbravo SLU
* All Rights Reserved.
* Contributor(s):  ______________________________________.
************************************************************************/
var VARCHAR:=uuid_generate_v4();
BEGIN
 WHILE var=uuid_generate_v4()::varchar LOOP
END LOOP;
  return replace(upper(uuid_generate_v4()::varchar),'-','');
END;   $BODY$
  LANGUAGE 'plpgsql' VOLATILE

Executed 116 SQL command(s) with 1 error(s)

Executing creation script

for the complete database

 解决方法如下:

1.安装windows  64位的jdk 和tomcat 配置环境变量

2.安装 windows 64 位的VC++ 2005运行库

3.安装.net framework 3.5

4.安装postgreSQL后再安装jdbc插件

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值