我正在尝试在我的Ubuntu 12.04环境中安装Perl模块DBD :: Informix。我已经成功安装了Informix服务器和客户端。我正在使用Perl 5.16。
当我尝试通过运行命令构建DBD :: Informix时:
$: perl -MCPAN -e 'install DBD::Informix'
我从esqltest获得了一长串错误,从以下开始:
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
Informix.o: In function `XS_DBD__Informix__dr_FETCH':
Informix.c:(.text+0x25): undefined reference to `PL_markstack_ptr'
Informix.c:(.text+0x2c): undefined reference to `PL_stack_base'
Informix.c:(.text+0x33): undefined reference to `PL_stack_sp'
Informix.c:(.text+0xee): undefined reference to `Perl_croak_xs_usage'
我最终失败了:
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Informix/Informix.so] Error 1
我非常感谢你对此有任何帮助。