can not load DBI in xampp's perl

view full story

http://stackoverflow.com – I am using VM VirtualBox and installed xampp in it. I want to write a perl script which can communicate with Mysql. But there is an error said it can not load DBI. My friend try to solve it and he changed some dir. But the problem has not been resolved. It seems like there is already a perl in VirtualBox before I install Xampp. That may conduct this problem: Can't load '/opt/lampp/lib/perl5/site_perl/5.14.2/i686-linux-thread-multi/auto/DBI/DBI.so' for module DBI: /opt/lampp/lib/perl5/site_perl/5.14.2/i686-linux-thread-multi/auto/DBI/DBI.so: undefined symbol: PL_charclass at /usr/lib/perl5/Dyn (HowTos)