Solved

blib.pm missing

Posted on 1997-04-10
2
214 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
non-interactive authentication of sftp command in AIX 5.3 15 189
Using Grep to Find a file 8 87
Linux :how to provide sudo access to the user 13 88
MarkLogic 1 69
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

920 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

16 Experts available now in Live!

Get 1:1 Help Now