本文介绍了在 Windows 上安装 Rouge的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装 DB_File Perl 模块时成功安装 XML::DOM Perl 模块后我

After successfully installing XML::DOM Perl module when I try to install DB_File Perl module I

得到以下错误信息.谁能告诉我如何解决这个问题并在

get the following error message. Can anyone tell me how to fix this problem and install Rouge on

我的 Windows 机器?

my Windows machine?

Set up gcc environment - 3.4.5 (mingw-vista special r3)
Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -ldb
Writing Makefile for DB_File
cp DB_File.pm blib\lib\DB_File.pm
AutoSplitting blib\lib\DB_File.pm (blib\lib\auto\DB_File)
C:/Perl/site/bin/gcc.exe -c  -I/usr/local/BerkeleyDB/include    -DNDEBUG -DWIN32 -D_CONSOLE

-DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT

-DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READF IX -DHASATTRIBUTE -fno-strict-aliasing

mms-bitfields -O2 -DVERSION=\"1. 824\"   -DXS_VERSION=\"1.824\"  "-IC:\Perl\lib\CORE"

-D_NOT_CORE  -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c version.c:30:16: db.h:
No such file or directory
dmake.exe:  Error code 129, while making 'version.o' PMQS/DB_File-1.824.tar.gz
C:\Perl\site\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
PMQS/DB_File-1.824.tar.gz                    : make NO

推荐答案

重要的部分是:

db.h: 没有那个文件或目录

编译器想要链接到 libdb (BerkeleyDB).安装它.

The compiler wants to link against libdb (BerkeleyDB). Install it.

这篇关于在 Windows 上安装 Rouge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 23:53