初学perl, sybase driver 无法安装!请高手指点.

初学perl, sybase driver 无法安装!请高手指点.

我主机系统是XP, 阅读说明, 我先安装了sybase for pc client, 下载的模块是DBD-Sybase-1.08.tar.gz, 释放后修改Makefile.PL 文件, 增加一行"my $SYBASE="c:/sybase";" 目的是设置环境变量, 然后执行
D:> perl Makefile.PL
Unknown Client Library version - assuming FreeTDS.

By default DBD::Sybase 1.05 and later use the 'CHAINED' mode (where available)
when 'AutoCommit' is turned off. Versions 1.04 and older instead managed
the transactions explicitly with a 'BEGIN TRAN' before the first DML
statement. Using the 'CHAINED' mode is preferable as it is the way that
Sybase implements AutoCommit handling for both its ODBC and JDBC drivers.

Use 'CHAINED' mode by default (Y/N) [Y]:
The DBD::Sybase module need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: SYBASE): User ID to log in to Sybase (default: sa): Password (default: undef):
Sybase database to use on SYBASE (default: undef):
* Writing login information, including password, to file PWD.

Note (probably harmless): No library found for -llibtcl.lib
Note (probably harmless): No library found for -llibcomn.lib
Note (probably harmless): No library found for -llibintl.lib
Note (probably harmless): No library found for -lm
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Using DBI 1.52 (for perl 5.008008 on MSWin32-x86-multi-thread) installed in C:/Perl/lib/auto/DBI/
Writing Makefile for DBD::Sybase

然后执行:
D:> make
D:> make test
D:> make install
都出错, 显示如下:
MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 879: Redefinition of target 'Sybase.obj'
Error makefile 886: Redefinition of target 'Sybase.obj'
*** 2 errors during make ***

请高手指点迷津, 不甚感激!
my $SYBASE="c:/sybase";
是不是也要写成my $SYBASE="c:\\sybase"; 或者
$SYBASE='c:\sybase'

呵呵,看了前边的帖子,我随便说说的
机子上安装 Sybase server 了么?
我先安装了sybase server,发现不行后,又在相同的目录下安装了pc client, 还是不行,看结果感觉是ctlib不对,不知道具体怎么做?刚才,我又考虑安装sybase:ctlib,sybase:sybperl模块, 可是都不行, 用ppm工具安装总是出现:
Error:Cant't extract file from
c:\docume~1............
PPM工具安装报错如下:  
Installing package ...
    Downloading Sybase-Simple-0.56 ... done
    Unpacking Sybase-Simple-0.56 ... failed

ERROR: Can't extract files from C:\DOCUME~1\Owner\LOCALS~1\Temp\ppm-KUCZJr/Sybase-Simple-0.56.tgz
Unknown Client Library version - assuming FreeTDS.
应该是没有找到你给的Client for pc的位置....
试着先设定windows有关Sybase 的environment variable..
然後开启dos视窗...
Makefile.PL应该不用改才对....

安装看看...

安装前最好先看看README/INSTALL...里面会告诉你应该注意什麽事情..
我想请教一下, sybase的客户端应该装什么啊, 环境变量怎么设才对啊?在线等!!!
我想问一下, 在XP里有可以执行的make命令,但没有cc的编译环境,这样行吗?


QUOTE:
This version attempts to find out which libraries it needs by looking
at $SYBASE/lib ($SYBASE/$SYBASE_OCS/lib for ASE 12.x installations.)
This behaviour works on Unix and VMS systems, but on Win32 you still
have to edit the CONFIG file the old way).
It assumes that $SYBASE is set and points to
the Sybase installation directory that you want to use to build
DBD::Sybase, and will also use the value of $SYBASE_OCS if it is set.

Then run
        perl Makefile.PL
You will be prompted to choose build options (chained mode for AutoCommit,
threaded libraries when using a threaded perl) and for server/user/pwd
to use for the "make test" step.

Windows下安装perl module应该要用nmake...
你原先作法没错..修改Makefile.PL 加入SYBASE="xxx";
可能是make那一行不对....试着改用nmake吧..
nmake是什么啊,需要装VC吗?