Welcome! Log In Create A New Profile

Advanced

Can't compile Perl script for irssi on the Dockstar

Posted by Ultrazauberer 
Can't compile Perl script for irssi on the Dockstar
March 14, 2011 03:27PM
Hello everyone. I'm using the debian installation that came with Jeff's script. I need a blowfish encryption for irssi, so I searched the web.

I have found 3 tools: the original fish plugin (can't build that on an ARM architecture), blowjob (official script from www.irssi.org - strange name ^^) and blowssi (0.1.0 currently running on my machine, but I want 0.2.0 with new features).

Only the last solution seems to work on my machine. So I wanted to build the latest script for my irssi. I downloaded the file from here: Blowssi

After that I installed a lot of packages and modules that I can't remember at all. The readme for the Crypt::ircDH1080 module shows me following:
Crypt-ircDH1080 version 0.01
============================

The README is used to introduce the module and provide instructions on
how to install the module, any machine dependencies it may have (for
example C compilers and installed libraries) and any other information
that should be provided before the module is installed.

A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install

DEPENDENCIES

This module requires these other modules and libraries:

         Crypt::Random
         Math::BigInt
         Digest::SHA

COPYRIGHT AND LICENCE

Put the correct copyright and licence information here.

Copyright (C) 2009 by Tanesha

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.10.0 or,
at your option, any later version of Perl 5 you may have available.

With cpan I installed all needed modules:
root@debian:/tmp/blowssi-0.2.0/Crypt-ircDH1080-0.01# instmodsh
Available commands are:
   l            - List all installed modules
   m <module>   - Select a module
   q            - Quit the program
cmd? l
Installed modules are:
   Crypt::Random
   Crypt::ircBlowfish
   Digest::SHA
   Math::BigInt
   Math::Pari
   Perl
cmd? q

Then I wanted to compile the module, but it gives me an error:
root@debian:/tmp/blowssi-0.2.0/Crypt-ircDH1080-0.01# perl Makefile.PL
Writing Makefile for Crypt::ircDH1080
root@debian:/tmp/blowssi-0.2.0/Crypt-ircDH1080-0.01# make
Skip blib/lib/Crypt/ircDH1080.pm (unchanged)
Manifying blib/man3/Crypt::ircDH1080.3pm
root@debian:/tmp/blowssi-0.2.0/Crypt-ircDH1080-0.01# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Crypt-ircDH1080.t .. 1/2
#   Failed test at t/Crypt-ircDH1080.t line 21.
t/Crypt-ircDH1080.t .. 3/2 # Looks like you planned 2 tests but ran 3.
# Looks like you failed 1 test of 3 run.
t/Crypt-ircDH1080.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests

Test Summary Report
-------------------
t/Crypt-ircDH1080.t (Wstat: 256 Tests: 3 Failed: 2)
  Failed tests:  2-3
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 2 tests but ran 3.
Files=1, Tests=3, 974 wallclock secs ( 0.23 usr  0.02 sys + 567.09 cusr 33.03 csys = 600.37 CPU)
Result: FAIL
Failed 1/1 test programs. 2/3 subtests failed.
make: *** [test_dynamic] Error 1
root@debian:/tmp/blowssi-0.2.0/Crypt-ircDH1080-0.01#

I hope anyone can help me. I searched the whole web and can't find any hit on google. Thanks!
If you ever find a solution to this, be sure to post it.
Saw that this question was fresh enough to comment on.


Been strugling to get blowssi to work for hours now, i've never used Perl, i've never wanted to.. but this is what i found out:


OS: XUbuntu 10.10
Perl: v5.10.1

To get as far as both me and the writed did, this is a recreation of my steps:
(prior to these, i extracted the zip files of blowssi and CD'ed to the proper directory)

sudo su
perl MakeFile.PL
make
make test
make install

You will most likely get an error here, so this is what you do then:

sudo apt-get install curl
curl -L http://cpanmin.us | perl - --sudo App::cpanminus

Then you "cpanm -S <module>" that you need, replace every / with :: from the path that the error spits out, example:
Error: Can't locate Crypt/Random/Generator.pm

Then you do:
cpanm -S Crypt::Random::Generator

And you should be good, now to the last part, where it doesn't say anything at all, just that your tests wrong..
Perl people, help!
Just skip the "make test" part for the DH1080 module.


tar -xvfz Crypt-ircDH1080-0.01.tar.gz
cd Crypt-ircDH1080-0.01
sudo su
perl MakeFile.PL
make
make test

:: If you run into any actual errors here like "Could not find Crypt::Random" then you have to follow the instructions in the previous post.
:: If you only got a error saying "Bad plan, you ran 3 tests but planed 2", then just skip "make test" and go directly to:

make install


That should do it. Good luck!
Thank you Gothi[c] (the developer of blowssi) for this solution!
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: