[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Cobalt Bandwidth Calculation Software
- Subject: RE: [cobalt-users] Cobalt Bandwidth Calculation Software
- From: "Donna" <webmaster@xxxxxxxxxxxxxxx>
- Date: Tue Dec 12 22:27:00 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Rodolfo J. Paiz
> (E-mail)
> Sent: Wednesday, 13 December 2000 3:48
> I'm getting bolder with time, but so far
> "tarball" ranks right
> up there with "prostate cancer" in the list of My Favorite
Things.
Just for everyone's general interest, I keep this handy for
reference. I can't remember where it came from originally,
perhaps CPAN or perl.com, but the instructions are pretty
straightforward.
As we all now, this kind of thing is always use at your own risk
re the warranty, etc.
You have a file ending in .tar.gz (or, less often, .zip). You
know there's a tasty module inside. There are four steps you must
now take:
DECOMPRESS the file
UNPACK the file into a directory
BUILD the module (sometimes unnecessary)
INSTALL the module.
Here's how to perform each step for each operating system. This
is not a substitute for reading the README and INSTALL files that
might have come with your
module!
Also note that these instructions are tailored for installing the
module into your system's repository of Perl modules. But you can
install modules into any directory you
wish. For instance, where I say perl Makefile.PL, you can
substitute perl Makefile.PL PREFIX=/my/perl_directory to install
the modules into
/my/perl_directory. Then you can use the modules from your Perl
programs with use lib "/my/perl_directory/lib/site_perl"; or
sometimes just
use "/my/perl_directory";.
If you're on Unix,
You can use Andreas Koenig's CPAN module
http://www.perl.com/CPAN/modules/by-module/CPAN ) to automate
the following steps, from
DECOMPRESS through INSTALL.
A. DECOMPRESS
Decompress the file with gzip -d yourmodule.tar.gz
You can get gzip from ftp://prep.ai.mit.edu/pub/gnu.
Or, you can combine this step with the next to save disk
space:
gzip -dc myfile.tar.gz | tar -x
B. UNPACK
Unpack the result with tar -xof yourmodule.tar
C. BUILD
Go into the newly-created directory and type:
perl Makefile.PL
make
make test
D. INSTALL
While still in that directory, type:
make install
Make sure you have the appropriate permissions to install
the module in your Perl 5 library directory. Often, you'll need
to be root.
That's all you need to do on Unix systems with dynamic
linking. Most Unix systems have dynamic linking -- if yours
doesn't, or if for another reason you have
a statically-linked perl, and the module requires
compilation, you'll need to build a new Perl binary that includes
the module. Again, you'll probably need to be
root.