如何安装 DBD::优点
我尝试在 Linux 和 Windows 上使用 DBD::Advantage,但没有成功。 Windows 版本似乎附带了一个完整的安装程序,但它留下了 DBD-Advantage-8.10.tar.gz。在 Linux 下,我已经完成了 make &&进行测试&& make install 系列,但无论如何我在两个平台上都收到以下错误。
install_driver(Advantage) failed: Can't locate loadable object for module
DBD::Advantage in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5
/usr/lib/perl5 /usr/share/perl5 ...... several other folders.
- AdvantageDatabase 8.1
- Perl 版本在 Linux 上为 5.12.4,在 Win2008 上为 5.12.3 Strawberry Perl。
I have tried using DBD::Advantage on both Linux and Windows with no luck. The Windows version comes with what appears to be a full fledged installer, but it leaves behind the DBD-Advantage-8.10.tar.gz. Under Linux, I had done the make && make test && make install
series, but regardless I get the following error on both platforms.
install_driver(Advantage) failed: Can't locate loadable object for module
DBD::Advantage in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5
/usr/lib/perl5 /usr/share/perl5 ...... several other folders.
- AdvantageDatabase 8.1
- Perl version is 5.12.4 on Linux and 5.12.3 Strawberry Perl on Win2008.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从安装中包含的 [readme.txt] 中:
======
Advantage DBI 驱动程序包含在 DBD-Advantage.X.XX.tar.gz 文件中。您可以通过运行以下命令来提取它:
tar -zxvf DBD-Advantage.X.XX.tar.gz
======
在 Windows 上,您应该能够使用 winrar 等实用程序来提取文件
From the [readme.txt] included with the install:
======
The Advantage DBI Driver is contained in the DBD-Advantage.X.XX.tar.gz file. You can extract it by running:
tar -zxvf DBD-Advantage.X.XX.tar.gz
======
On Windows you should be able to extract the file using a utility such as winrar
如果您在 @INC 路径中找不到该模块,则安装可能失败。我尝试通过 perl ./Makefile.PL 手动添加包,看看是否失败。
如果模块位于 @INC 路径中,则可能只是权限问题。
If you can't find the module in your @INC path, the install probably failed. I'd try to manually add the package via the perl ./Makefile.PL and see if that fails.
If the module is in the @INC path, it may just be a permissions issue.