Solved

blib.pm missing

Posted on 1997-04-10
2
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

730 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