Re: Perl Module Installation

2006-08-23 Thread Ken Williams


On Aug 23, 2006, at 4:25 PM, Michael Barto wrote:


Typically:

#./configuration
#make
#make check <= VERY IMPORTANT!!
#make install



In about 12 years of doing perl I think I've never seen an  
installation sequence that looks like that.  I think you mean:


 % perl Makefile.PL
 % make
 % make test
 % sudo make install

In recent days you might also see some modules that use Module::Build  
instead of MakeMaker, and those can have a different installation  
sequence:


 % perl Build.PL
 % ./Build
 % ./Build test
 % sudo ./Build install

Well-behaved Module::Build-based modules will provide both options.

 -Ken



Re: Perl Module Installation

2006-08-23 Thread Paul McCann

 Michael Barto wrote:

If you have downloaded the module instead of using CPAN, look at  
the file "INSTALL" in the module. If should tell you what to do:


#./configuration
#make
#make check <= VERY IMPORTANT!!
#make install


Hmm, doesn't look very typical!! Most perl modules don't have an  
"INSTALL" file, "./configuration" will produce an error as there's no  
such file in the directory (you mean "./configure" I think, but it  
will also give an error  as it's not appropriate for a perl module),  
and you probably shouldn't be running the first three of those things  
as root...


Mo, just in case you either (a) can't get the cpan script to run  
(it's sometimes a little finicky to set up behind a proxy server, for  
example), or (b) wish to do  things by hand, here's the standard  
sequence to go through in order to install DBI.


If you have downloaded DBI-1.52.tar.gz then move it somewhere  
convenient (eg, a directory called "src" in your home directory; make  
this directory if necessary). Then


% cd ~/src
% tar zxf DBI-1.52.tar.gz
% cd DBI-1.52
% perl Makefile.PL

[[ At this stage you might get warnings about missing prerequisite  
modules; in that case you will have to install them beforehand using   
the  same procedure described here. This can cause quite a bit of  
cascading backwards if the module you're installing has a lot of  
dependencies: getting stuck in such an installation cycle will make  
you appreciate cpan (the script, not the repository). ]]


% make
% make test

[[ Then if the tests all pass...]]

% sudo make install

The last of  these will ask for your password (I'm assuming you're an  
admin user). The module will automatically be installed in the  
appropriate place on your machine. No need to manually copy anything  
anywhere.


Best of luck,
Paul




Re: Perl Module Installation

2006-08-23 Thread Michael Barto




If you have downloaded the module instead of using CPAN, look at the
file "INSTALL" in the module. If should tell you what to do:

Typically:

#./configuration
#make
#make check         <= VERY IMPORTANT!!
#make install

But using CPAN is better.

There are other issues in the MacOS X for manual installation or
modules such as where the modules are install. The manual method may
put them in /usr/local instead of in /Library. Be careful.

LogiQwest uses DBI.pm for our product which runs in Perl for multiple
Unix types. (we develop on the Mac by the way for Unix reasons with
desktops). The following link I have posted that might be useful to you
for you DBI installation. It is part of our documentation (though it is
general for Unix):

http://www.logiqwest.com/dataCenter/Demos/RunBooks/EnterpriseView/Docs/DbiDbdInstallation.html

But many of the other links on this page do not work.

Moisés Chicharro wrote:
Hi All,
  
  
Can anyone point me to a decent tutorial for installing perl modules.
  
  
The one I have downloaded is DBI-1.52.tar.gz
  
  
I am running OS X 10.4.7 and have never installed a perl module 
before. I have found various pages on the net but I don't want to  mess
things up so would like to make sure that the tutorial I am  reading
has been recommended by some experts! :)
  
  
I am also assuming that the right directory for my install is
  
System/Library/Perl/5.8.6/
  
  
Thankyou in advance,
  
Mo
  
  
  
  


-- 





  

  
  


  Michael Barto
  Software Architect
  
  
  
  


   LogiQwest
Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA  92649
  http://www.logiqwest.com/
  
  
     
  [EMAIL PROTECTED]
Tel:  714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949
  
  


  'tis a gift to be
simple
   


   This e-mail may contain
LogiQwest
proprietary information and should be treated as confidential. 

  








Re: Perl Module Installation

2006-08-23 Thread Daniel T. Staal
On Wed, August 23, 2006 12:27 pm, Moisés Chicharro said:
> Hi All,
>
> Can anyone point me to a decent tutorial for installing perl modules.
>
> The one I have downloaded is DBI-1.52.tar.gz
>
> I am running OS X 10.4.7 and have never installed a perl module
> before. I have found various pages on the net but I don't want to
> mess things up so would like to make sure that the tutorial I am
> reading has been recommended by some experts! :)
>
> I am also assuming that the right directory for my install is
> System/Library/Perl/5.8.6/
>
> Thankyou in advance,
> Mo

In general the best way to install Perl modules is to use CPAN.

Use Terminal and run 'perl -MCPAN -e shell' (or just 'cpan') and answer
the questions it asks.  If you don't know the answer, use the default. 
Then, while in the CPAN shell, type 'install DBI'.  It will get the latest
version, unpack it, test it, and install it for you.

You will of course need the devloper tools to do this, in case you haven't
installed them already.

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---



Perl Module Installation

2006-08-23 Thread Moisés Chicharro

Hi All,

Can anyone point me to a decent tutorial for installing perl modules.

The one I have downloaded is DBI-1.52.tar.gz

I am running OS X 10.4.7 and have never installed a perl module  
before. I have found various pages on the net but I don't want to  
mess things up so would like to make sure that the tutorial I am  
reading has been recommended by some experts! :)


I am also assuming that the right directory for my install is
System/Library/Perl/5.8.6/

Thankyou in advance,
Mo