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

Hmmm. Further to previous thread about bundling a Perl/Tk app for distribution I am trying to install PAR...

andrew:~/PAR-0.89$ perl Makefile.PL ... mktmpdir.h:72: sha1.c: No such file or directory ...

Update: As per the responses I ran sha1.c.PL manually and that allowed it to make. Now I am trying to make test and getting about 50% errors. It is a Linux system.

The first failed test is:

t/2-pp.......Can't load '/tmp/par-andrew/temp-23135/14504270.so' for m +odule IO: /tmp/par-andrew/temp-23135/14504270.so: failed to map segme +nt from shared object: Operation not permitted at /usr/lib/perl5/i386 +-linux/DynaLoader.pm line 206. at ../blib/lib/PAR/Heavy.pm line 81 Compilation failed in require at /usr/lib/perl5/i386-linux/IO/Handle.p +m line 256. BEGIN failed--compilation aborted at /usr/lib/perl5/i386-linux/IO/Hand +le.pm line 256. Compilation failed in require at /usr/lib/perl5/i386-linux/IO/Seekable +.pm line 101. BEGIN failed--compilation aborted at /usr/lib/perl5/i386-linux/IO/Seek +able.pm line 101. Compilation failed in require at /usr/lib/perl5/i386-linux/IO/File.pm +line 112. BEGIN failed--compilation aborted at /usr/lib/perl5/i386-linux/IO/File +.pm line 112. Compilation failed in require at -e line 305.

Could this be because I am not installing it as root? It is trying to write to /tmp it looks like? -Andrew.


Andrew Tomazos  |  andrew@tomazos.com  |  www.tomazos.com

Replies are listed 'Best First'.
Re: Installing PAR problems
by pboin (Deacon) on Jul 13, 2005 at 01:36 UTC

    I just did the PAR-thing last week, and I had some degree of trouble with Digest::MD5, of which I'm almost certain sha1.c would be a part. (SHA is a hash algorithim.)

    So, I can't give you specific advice other than to look in that direction -- make sure you get a clean 'make test', etc.. Sorry I can't be more helpful but I'm on the road (with low battery no less :( )

Re: Installing PAR problems
by PodMaster (Abbot) on Jul 13, 2005 at 05:17 UTC
    Any ideas how I go about debugging this one?
    Check to see if sha1.c exists. Find out where sha1.c appears in the distrubution.
    What is sha1.c?
    According to the MANIFEST, its part of the distribution. According to myldr\Makefile.PL, its generated by sha1.c.PL, so I'd make sure that sha1.c.PL is there, and try to generate the file by hand.
    Thats some kind of digital signature thing no?
    Yes, but that's not important :)

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Installing PAR problems (Update)
by gri6507 (Deacon) on Jul 13, 2005 at 13:14 UTC
    As I have mentioned in 474263, you may be missing the perl-devel package. Just apt-get update; apt-get perl-devel and give PAR make another try (of course, do make distclean; configure first)

        apt-get is a front-end debian's package management system. Debian works with .deb files much the same way as ohter distributions work with *.rpm files. (Except better <g>.)

        So, long story short, make sure perl-devel package is installed.