DBD-Sybase安装问题
最近在做nagios监控SqlServer的东西,遇到安装DBD-Sybase的时候提示错误,下面是我安装的步骤:
1.安装好nagios并配置好windowsserver的监控并且确认能够正常监控。
2.安装rpm -qa|grep perl-DBI发现已经有安装了
3.安装freetds-0.82
tar -zxvf freetds-stable.tgz
cd freetds-0.82
./configure --prefix=/usr/local/freetds --with-tdsver=8.0
make
make install
echo "/usr/local/freetds/lib" >> /etc/ld.so.conf
ldconfig
4.安装DBD-Sybase1.11
export SYBASE=/usr/local/freetds
tar -zxvf DBD-Sybase-1.11.tar.gz
cd DBD-Sybase-1.10
perl Makefile.PL
这一步提示了这些
Note (probably harmless): No library found for -lcs
Note (probably harmless): No library found for -lsybtcl
Note (probably harmless): No library found for -lcomn
Note (probably harmless): No library found for -lintl
Note (probably harmless): No library found for -lblk
make
在make的时候报错了,提示
In file included from Sybase.c:352:
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h: In function `dbixst_bounce_method':
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h:14: error: `my_perl' undeclared (first use in this function)
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h:14: error: (Each undeclared identifier is reported only once
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h:14: error: for each function it appears in.)
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h: In function `dbdxst_bind_params':
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h:54: error: `my_perl' undeclared (first use in this function)
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h: In function `dbdxst_fetchall_arrayref':
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI/Driver_xst.h:75: error: `my_perl' undeclared (first use in this function)
make: *** [Sybase.o] Error 1
不知道是哪里的问题?顺便问一下,装DBD-Sybase之前需要先装Sybase吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论