Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Message Queue in Perl

by QuillMeantTen (Friar)
on Aug 27, 2015 at 15:06 UTC ( #1140218=perlquestion: print w/replies, xml ) Need Help??

QuillMeantTen has asked for the wisdom of the Perl Monks concerning the following question:

Thanks to the comment of a more experienced monk I have been made aware of a vast field of software engineering known as message queue.
After a bit of googling and a lot of stackoverflowing I went to have a look at Spread. Since it has a package on cpan I decided to install it (using someone else's better built code would save me a lot of debugging and rewriting). Then I got this :

Reading '/root/.cpan/Metadata' Database was generated on Thu, 27 Aug 2015 07:53:25 GMT Running install for module 'Spread' Checksum for /root/.cpan/sources/authors/id/J/JE/JESUS/Spread- +.tar.gz ok Scanning cache /root/.cpan/build for sizes ...................................................................... +......DONE 'YAML' not installed, will not store persistent state Configuring J/JE/JESUS/Spread- with Makefile.PL Checking if your kit is complete... Looks good Warning: -L../.. changed to -L/root/.cpan/build/Spread- +/../.. Warning (mostly harmless): No library found for -lspread Generating a Unix-style Makefile Writing Makefile for Spread Writing MYMETA.yml and MYMETA.json JESUS/Spread- /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK Running make for J/JE/JESUS/Spread- cp blib/lib/ AutoSplitting blib/lib/ (blib/lib/auto/Spread) Running Mkbootstrap for Spread () chmod 644 "" "/usr/bin/perl" "/usr/share/perl/5.14/ExtUtils/xsubpp" -typemap "/usr +/share/perl/5.14/ExtUtils/typemap" -typemap "typemap" Spread.xs > Sp +read.xsc && mv Spread.xsc Spread.c cc -c -I ../.. -I ../spread-src-3.17.0/ -D_REENTRANT -D_GNU_SOURCE -D +DEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/incl +ude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"3 +.17.4.4\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.14/CORE" + Spread.c Spread.xs:15:16: fatal error: sp.h: No such file or directory compilation terminated. make: *** [Spread.o] Error 1 JESUS/Spread- /usr/bin/make -- NOT OK Failed during this command: JESUS/Spread- : make NO

I'm using debian wheezy, it seems other peoples have encountered the same problem but I had no luck finding an answer, so if anyone here used that package successfully I'd love to know how (sh|h)e did it.

Replies are listed 'Best First'.
Re: Message Queue in Perl
by karlgoethebier (Abbot) on Aug 27, 2015 at 17:52 UTC

    QuillMeantTen, for curiosity i tried to install Spread on my Mac (10.7.5) via cpanm and got the same error: 'sp.h' file not found.

    But after downloading the sources from and compiling them i had success:

    karls-mac-mini:spread-src-4.4.0 karl$ cpanm Spread --> Working on Spread Fetching +.gz ... OK Configuring Spread- ... OK Building and testing Spread-v3.17.4.4 ... OK Successfully installed Spread-v3.17.4.4 1 distribution installed karls-mac-mini:spread-src-4.4.0 karl$ perl -MSpread ^C

    I hope that helps or is at least inspiring ;-)

    Minor Edit: Fixed my name...

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      " works."

      Very nice. But before i do more RTFM about what this new module on my box is good for it would be nice to hear something about what your plan/project is...

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        I can tell you. .. But then I'll have to kill you.

        nah, more seriously I've been learning perl for about two weeks to prepare myself for next university year (last one before a master in computer security) I decided to write a surveillance/log management system that would parse logs, fill dublin core style tables in a mysql database and then run diagnostics to detect discrepancies that might indicate hostile activities
        with that data it would write reports and email them. Each main unit should be able to run on a separate machine. Hence the message queue issue

      Yay, did the same thing, it works.

Re: Message Queue in Perl
by aitap (Curate) on Aug 27, 2015 at 16:22 UTC

    No library found for -lspread ... Spread.xs:15:16: fatal error: sp.h: No such file or directory
    You need to install an additional library, but there doesn't seem to be a package containing a library for -lspread or a suitable sp.h. Unless there is a libspread package in Debian which I failed to find, you'll have to compile it by hand, then retry the CPAN module installation.

    By the way, there was a Spread binding in Debian Squeeze (which did contain all the necessary files), but it's removed now.

Re: Message Queue in Perl
by neilwatson (Priest) on Aug 27, 2015 at 15:13 UTC

    A dubious looking module. No dependencies list and no tests.

    Neil Watson

      no tests
      There is a test, but it is old-school (, not in "t" directory). However, CPAN Testers show the test failing on most platforms (Spread). Since "CPAN Testers Websites Are Down", it is not currently easy to figure out how the test is failing on other platforms.
Re: Message Queue in Perl
by QuillMeantTen (Friar) on Aug 27, 2015 at 17:38 UTC

    I'll give it a look... Anyone can suggest another solution?
    Not that I'm not proud of my homegrown code but I'd really prefer something more reliable :s

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1140218]
Approved by kevbot
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2023-06-01 05:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found