Re: [Monetdb-developers] Cannot get perl talking to monetdb5 nightly stable

Hi Everyone,
I'm also experiencing some difficulties with Perl - i've spent the past 3 days trying to get this to work but i can't find any log, any error message etc ...
I've installed all the perl libs , but when i run the test script, it's just stay there indefinitely with no output,no error - this is the script :
cat monetdb2.pl
#!/usr/bin/perl
use DBI();
my $dbh = DBI->connect('dbi:monetdb:');
my $sth = $dbh->prepare('SELECT * FROM env');
$sth->execute;
$sth->dump_results;
I'm running monetdb with the following command:
root@ulys:~# mserver5 --dbinit="include sql;" --dbname=demo --daemon=yes
# MonetDB server v5.6.0, based on kernel v1.24.0
# Serving database 'demo'
# Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs dynamically linked
# Copyright (c) 1993-2008 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
#warning: please don't forget to set your vault key!
#(see /root/MonetDB/etc/monetdb5.conf)
# Listening for connection requests on mapi:monetdb://127.0.0.1:50000/
# MonetDB/SQL module v2.24.0 loaded
when i kill the monetdb daemon, my perl script is throwing this error :
# ./monetdb2.pl
Caught a SIGPIPE at /usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm line 93
$ = eval {...} called from file `/usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm' line 93
$ = MonetDB::CLI::MapiPP::Req::query('MonetDB::CLI::MapiPP::Req=HASH(0x83a66e0)', 'SELECT * FROM env') called from file `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
$ = eval {...} called from file `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
$ = DBD::monetdb::st::execute('DBI::st=HASH(0x83a683c)') called from file `./monetdb2.pl' line 8
Aborted
Also i can connect with no problem with mclient (no password required).
Please advise on how to get perl talking to monetdb5.
Thanks in advance,
SB
------ original message -------
[Monetdb-developers] Cannot get perl talking to monetdb5 nightly stableFrom: Rt Ibmer
participants (1)
-
sylver_b