Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Can't install IPC:Shareable

by syniperl (Novice)
on Dec 29, 2010 at 22:48 UTC ( #879713=perlquestion: print w/ replies, xml ) Need Help??
syniperl has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install IPC:Shareable in a 64 bit linux system and received the following errors
1) t/10av.t ...... 1/11 Can't use string ("3") as an ARRAY ref while "strict refs" in use at /home/ec2-user/.cpan/build/IPC-Shareable-0.60-WmQJPw/blib/lib/IPC/Shareable.pm line 455.
2) t/10av.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)

I tried installing through
a) MCPAN
b)Force install using the the code.
c) using perl 5.10 and 5.12 (both built for 64bit).
d) yum install
'yum search IPC' gives only
************************************Yum search results
sudo yum search IPC Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile ====================================== Matched: IPC ================== +==================== perl-IPC-SharedCache.noarch : Perl module to manage a cache in SysV IP +C shared memory perl-IPC-Run3.noarch : Run a subprocess in batch mode perl-IPC-ShareLite.x86_64 : Lightweight interface to shared memory perl-IPC-Cmd.x86_64 : Finding and running system commands made easy


******************* (The actual errors)
t/05sv.t ...... ok t/10av.t ...... 1/11 Can't use string ("3") as an ARRAY ref while "str +ict refs" in use at /home/ec2-user/.cpan/build/IPC-Shareable-0.60-WmQ +JPw/blib/lib/IPC/Shareable.pm line 455. t/10av.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 9/11 subtests t/15hv.t ...... ok t/20ref.t ..... ok t/25ipc.t ..... ok t/30lock.t .... ok t/35clean.t ... ok t/36ipcav.t ... ok t/38ipchv.t ... ok t/40ipcref.t .. ok t/45obj.t ..... ok

Any one had success in installing this on a 64 bit system

Comment on Can't install IPC:Shareable
Select or Download Code
Re: Can't install IPC:Shareable
by Corion (Pope) on Dec 29, 2010 at 22:59 UTC
Re: Can't install IPC:Shareable
by Anonyrnous Monk (Hermit) on Dec 29, 2010 at 23:07 UTC

    Changing line 455

    $#{@{$self->{_data}}} = $n - 1;

    into

    $#{$self->{_data}} = $n - 1;

    fixes the issue for me.

    (modify blib/lib/IPC/Sharable.pm in the build directory before running the tests with make test)

      This problem was reported two years ago. It looks like this module isn't being maintained.

      Some background for those interested:

      There was a bug in Perl such that

      $#{ @array }

      was interpreted as

      $#{ \@array }
      instead of
      $#{ scalar(@array) }

      IPC::Shareable's test relies on this bug, but it was fixed in Perl 5.10. Note the lack of 5.10.x and 5.12.x passing results.

        This problem was reported two years ago. It looks like this module isn't being maintained.

        Looks like module hasn't been updated since 2001

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://879713]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (20)
As of 2014-07-31 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls