[求助]安装DBI时出错
[求助]安装DBI时出错
[size=3][b]我安装的是perl5.8.8 ,在HPunix上,用root用户安装的,在安装DBI的时候报了很多错,具体安装步骤如下:
1、perl Makefile.PL
报错是[/b][/size]
Warning: prerequisite Storable 1 not found.
Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.
Reinstall DBI and your DBD::* drivers after deleting the old directories.
Here's a list of probable old files and directories:
/usr/local/lib/perl5/5.8.8/Bundle/DBI.pm
/usr/local/lib/perl5/5.8.8/DBD
/usr/local/lib/perl5/5.8.8/DBI
/usr/local/lib/perl5/5.8.8/DBI/Changes.pm
/usr/local/lib/perl5/5.8.8/DBI/Const
/usr/local/lib/perl5/5.8.8/DBI/Const/GetInfo
/usr/local/lib/perl5/5.8.8/DBI/Const/GetInfo/ANSI.pm
/usr/local/lib/perl5/5.8.8/DBI/Const/GetInfo/ODBC.pm
/usr/local/lib/perl5/5.8.8/DBI/Const/GetInfoReturn.pm
/usr/local/lib/perl5/5.8.8/DBI/Const/GetInfoType.pm
/usr/local/lib/perl5/5.8.8/DBI/DBD
/usr/local/lib/perl5/5.8.8/DBI/DBD/Metadata.pm
/usr/local/lib/perl5/5.8.8/DBI/ProfileDumper
/usr/local/lib/perl5/5.8.8/DBI/ProfileDumper/Apache.pm
/usr/local/lib/perl5/5.8.8/DBI/Roadmap.pm
/usr/local/lib/perl5/5.8.8/DBI/SQL
/usr/local/lib/perl5/5.8.8/DBI/SQL/Nano.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/DBD.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/FAQ.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/Profile.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/ProfileData.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/ProfileDumper.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/ProfileSubs.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/ProxyServer.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/PurePerl.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/DBI/W32ODBC.pm
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/DBI.bs
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/DBIXS.h
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/Driver.xst
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/Driver_xst.h
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/dbd_xsh.h
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/dbi_sql.h
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/dbipport.h
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/auto/DBI/dbivport.h
/usr/local/lib/perl5/5.8.8/Win32/DBIODBC.pm
[b]我把相应的文件找到,删掉以后,就只剩下 Warning: prerequisite Storable 1 not found.
这一个报错了,可是goole了很长时间也没找到是什么原因。
试着进行后面的make,也报错退出了
[/b]
#make
/usr/local/bin/perl "-MExtUtils::Command" -e mkpath blib/lib/DBI
Can't locate loadable object for module File::Glob in @INC
(@INC contains:
/usr/local/lib/perl5/5.8.8/PA-RISC2.0
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/PA-RISC2.0
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
.
) at /usr/local/lib/perl5/5.8.8/ExtUtils/Command.pm line 61
Compilation failed in require at /usr/local/lib/perl5/5.8.8/ExtUtils/Command.pm line 61.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/ExtUtils/Command.pm line 61.
Compilation failed in require.
BEGIN failed--compilation aborted.
*** Error exit code 2
Stop.
搜索了一下,主机上有Glob的相关程序,如
/usr/local/lib/perl5/5.8.8/PA-RISC2.0/File/Glob.pm
实在找不出来是哪里的原因。
下面的步骤就没办法进行了。帮忙看看谁遇到过这种问题,帮忙想想办法。