GDBM and Perl 5.6.1

Discussion in 'Perl Misc' started by JAG, Feb 12, 2004.

  1. JAG

    JAG Guest

    Hi. We're running Perl 5.6.1 on a Solaris 9 box.
    We need GDBM support but it's not installed.
    I can't find a standalone module on CPAN - it only seems
    to come bundled with Perl 5.8.x.

    Does anybody know either:
    1) why my Perl 5.6.1 doesn't have GDBM and whether I can install it?
    2) where I can get a standalone GDBM module?

    Solaris 9 comes with Perl and I suspect that rebuilding Perl would be a really
    bad idea. Is this suspicion correct?

    Thanks in advance for your help.
     
    JAG, Feb 12, 2004
    #1
    1. Advertising

  2. JAG

    Ben Morrow Guest

    (JAG) wrote:
    > Hi. We're running Perl 5.6.1 on a Solaris 9 box.
    > We need GDBM support but it's not installed.
    > I can't find a standalone module on CPAN - it only seems
    > to come bundled with Perl 5.8.x.
    >
    > Does anybody know either:
    > 1) why my Perl 5.6.1 doesn't have GDBM and whether I can install it?
    > 2) where I can get a standalone GDBM module?


    If you donwload the perl-5.8.2 tarball and take the GDBM_File
    directory out of the ext/ directory, you should be able to install
    that with your perl.

    Ben

    --
    $.=1;*g=sub{print@_};sub r($$\$){my($w,$x,$y)=@_;for(keys%$x){/main/&&next;*p=$
    $x{$_};/(\w)::$/&&(r($w.$1,$x.$_,$y),next);$y eq\$p&&&g("$w$_")}};sub t{for(@_)
    {$f&&($_||&g(" "));$f=1;r"","::",$_;$_&&&g(chr(0012))}};t #
    $J::u::s::t, $a::n::eek:::t::h::e::r, $P::e::r::l, $h::a::c::k::e::r, $.
     
    Ben Morrow, Feb 12, 2004
    #2
    1. Advertising

  3. JAG

    Joe Smith Guest

    JAG wrote:

    > Solaris 9 comes with Perl and I suspect that rebuilding Perl would be a really
    > bad idea. Is this suspicion correct?


    Incorrect.

    It is a bad idea to overwrite or replace /usr/perl5/*, but perfectly
    reasonable to "rm /usr/bin/perl; ln -s /usr/local/bin/perl /usr/bin".
    The vendor supplied scripts all use /usr/perl5/bin/perl, which means
    it is OK to install a newer one from www.sunfreeware.com.

    solaris9% /usr/perl5/bin/perl -v
    This is perl, v5.6.1 built for sun4-solaris-64int
    solaris9% perl -v
    This is perl, v5.8.3 built for sun4-solaris

    The latter was compiled with gcc instead of Sun's C compiler.
    -Joe
     
    Joe Smith, Feb 13, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bucket79
    Replies:
    1
    Views:
    759
    Arne Koewing
    Aug 21, 2003
  2. Ed
    Replies:
    1
    Views:
    520
  3. Jim Pazarena

    perl and GDBM and FreeBSD

    Jim Pazarena, Feb 8, 2005, in forum: Perl Misc
    Replies:
    0
    Views:
    215
    Jim Pazarena
    Feb 8, 2005
  4. PerlFAQ Server
    Replies:
    0
    Views:
    132
    PerlFAQ Server
    Feb 3, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    125
    PerlFAQ Server
    Feb 22, 2011
Loading...

Share This Page