Solved

blib.pm missing

Posted on 1997-04-10
2
209 Views
Last Modified: 2013-12-16
Trying to install libnet-1.0502 on a Solaris 2.4 system on a Sun Sparc IPC.
Rec'd message indicating a missing module - blib.pm .
Unable to locate via search engines - anyone know where I may get this piece of the puzzle.

Thanks for any assistance -
Walter Butrymowicz
0
Comment
Question by:wbutry
2 Comments
 

Accepted Solution

by:
forlorn earned 50 total points
ID: 1812007
blib.pm should have been installed in /usr/local/lib/perl5 or whatever your perl library directory is, during the initial perl install.

here it is otherwise.

--------------------------------------------------------------------
package blib;
 
=head1 NAME
 
blib - Use MakeMaker's uninstalled version of a package
 
=head1 SYNOPSIS
 
 perl -Mblib script [args...]
 
 perl -Mblib=dir script [args...]
 
=head1 DESCRIPTION
 
Looks for MakeMaker-like I<'blib'> directory structure starting in
I<dir> (or current directory) and working back up to five levels of '..'.
 
Intended for use on command line with B<-M> option as a way of testing
arbitary scripts against an uninstalled version of a package.
 
However it is possible to :
 
 use blib;
 or
 use blib '..';
 
etc. if you really must.
 
=head1 BUGS
 
Pollutes global name space for development only task.
 
=head1 AUTHOR
 
Nick Ing-Simmons nik@tiuk.ti.com
 
=cut
 
use Cwd;
 
 
sub import
{
 my $package = shift;
 my $dir = getcwd;
 if (@_)
  {
   print join(',',@_),"\n";
   $dir = shift;
   $dir =~ s/blib$//;
   $dir =~ s,/+$,,;
   $dir = '.' unless ($dir);
   die "$dir is not a directory\n" unless (-d $dir);
  }
 my $i   = 5;
 while ($i--)
  {
   my $blib = "${dir}/blib";
   if (-d $blib && -d "$blib/arch" && -d "$blib/lib")
    {
     unshift(@INC,"$blib/arch","$blib/lib");
     warn "Using $blib\n";
     return;
    }
   $dir .= "/..";
  }
 die "Cannot find blib even in $dir\n";
}
 
1;


0
 

Author Comment

by:wbutry
ID: 1812008
Thank you for your help. This was not included in the release of Perl 5.003 installed upon my systems. I appreciate your sending me a copy.

Walter
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now