Re: Installing modules locally, how to

2007-02-21 Thread Peter Scott
On Tue, 20 Feb 2007 11:41:41 -0500, Moon, John wrote:
 Looking for help installing modules to a local library... 

You've got multiple problems below.

 Below are several attempts.
 
 Any suggestions or links to How to... will be greatly appreciated.
 
 SUN83-PRODWEBpwd
 /opt/common/html/billing/cgi-bin/Library/Class-Accessor-0.30
 SUN83-PRODWEBls
 Changes  MANIFEST Makefile README   lib
 INSTALL  META.yml Makefile.PL  examples t

This is an unwrapped source tarball.  What is it doing in a hierarchy
labelled (a) html, (b) cgi-bin, and (c) Library?  That's at best confusing.

 SUN83-PRODWEBperl Makefile.PL
 LIB=/opt/common/html/billing/cgi-bin/Library
 Writing Makefile for Class::Accessor

People almost always use PREFIX instead of LIB.  I see you tried that
later.  And you're trying to install to a parent of the directory holding
your source.  That's a bad idea.  You're going to have a source directory
stuck in your installation tree.  At best that wastes lookup time.

 SUN83-PRODWEB/usr/ccs/bin/make

Do you know that's the right make?  You want to use the one that was used
to build your perl.  You could run into problems otherwise.

 mkdir blib/lib: Permission denied at
 /usr/local/lib/perl5/5.8.5/ExtUtils/Command.pm line 186 *** Error code
 255
 make: Fatal error: Command failed for target `blib/lib/Class/.exists'
 SUN83-PRODWEB

So you don't have permission to write to the directory you're in.  (You
haven't even reached the installation step.)

As Mumia W. suggested, use CPAN.pm in the local installation mode.  Then
these issues will disappear.

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Installing modules locally, how to

2007-02-20 Thread Lin

Hi John,


SUN83-PRODWEBperl Makefile.PL
SUN83-PRODWEB/usr/ccs/bin/make


You have to be root (or user with similar rights) to do this.
So try (if you have the sudo package installed):

$ SUN83-PRODWEBsudo perl Makefile.PL
$ SUN83-PRODWEBsudo /usr/ccs/bin/make

Or get root (superuser) prior to installing:

$ SUN83-PRODWEBsu
Password:
$ SUN83-PRODWEBperl Makefile.PL
$ SUN83-PRODWEB/usr/ccs/bin/make

Cheers,
Lin


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




RE: Re: Installing modules locally, how to

2007-02-20 Thread Moon, John
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lin
Sent: Tuesday, February 20, 2007 1:09 PM
To: beginners@perl.org
Subject: Re: Installing modules locally, how to

Hi John,

 SUN83-PRODWEBperl Makefile.PL
 SUN83-PRODWEB/usr/ccs/bin/make

You have to be root (or user with similar rights) to do this.
So try (if you have the sudo package installed):

$ SUN83-PRODWEBsudo perl Makefile.PL
$ SUN83-PRODWEBsudo /usr/ccs/bin/make

Or get root (superuser) prior to installing:

$ SUN83-PRODWEBsu
Password:
$ SUN83-PRODWEBperl Makefile.PL
$ SUN83-PRODWEB/usr/ccs/bin/make

Cheers,
Lin


-- 

Thank you Lin, but the problem (or part of it) is I am not root... Hence
why I am trying to install in a local library.

jwm


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Installing modules locally, how to

2007-02-20 Thread Mumia W.

On 02/20/2007 10:41 AM, Moon, John wrote:
Looking for help installing modules to a local library... 


http://search.cpan.org/~jhi/perl-5.8.0/pod/perlmodinstall.pod says to do
the install one way while README for the module gives other
instructions. CPAN says a) Decompress, b) Unpack, c) Build, and d)
Install. The Build step is different than what the README for the module
instructs.

Below are several attempts.

Any suggestions or links to How to... will be greatly appreciated.

SUN83-PRODWEBpwd
/opt/common/html/billing/cgi-bin/Library/Class-Accessor-0.30
SUN83-PRODWEBls
Changes  MANIFEST Makefile README   lib
INSTALL  META.yml Makefile.PL  examples t



I think you've become confused between the build directory and the 
installation directory. When you unpack the .tar.gz file, a build 
directory is automatically created. You go into that build directory and 
execute perl Makefile.PL ...; that creates the makefile; then you 
issue make install to install the module's file into the install 
directory.


For example, let's say these are the directories you are using:
Build: ~/build/Class-Accessor-0.30
Install: /opt/common/html/billing/cgi-bin/Library

You might do this:
cd ~/build
tar xvzf ~/Class-Accessor-0.30.tar.gz
cd Class-Accessor-0.30 # Go into build directory.
perl Makefile.PL PREFIX=/opt/common/html/billing/cgi-bin/Library
make test  # just to see that it's working
make install

In your programs, you might do this to use the module:

use lib '/opt/common/html/billing/cgi-bin/Library';
use Class::Accessor;



SUN83-PRODWEBperl Makefile.PL
LIB=/opt/common/html/billing/cgi-bin/Library
Writing Makefile for Class::Accessor

SUN83-PRODWEB/usr/ccs/bin/make
mkdir blib/lib: Permission denied at
/usr/local/lib/perl5/5.8.5/ExtUtils/Command.pm line 186
*** Error code 255
make: Fatal error: Command failed for target `blib/lib/Class/.exists'
SUN83-PRODWEB



Evidently you don't have permission to write into your build directory, 
but the way you're going about it is all wrong anyway.


Create distinct build and installation directories and try to get that 
to work. Probably permissions on the web-server directories will stop 
you from installing there, so you might have to install the modules to 
your home directory or contact the system administrator and ask him to 
install them.




Also tries

SUN83-PRODWEBperl Makefile.PL
PREFIX=/opt/common/html/billing/cgi-bin/Library
Writing Makefile for Class::Accessor
SUN83-PRODWEB

SUN83-PRODWEB/usr/ccs/bin/make
mkdir blib/lib: Permission denied at
/usr/local/lib/perl5/5.8.5/ExtUtils/Command.pm line 186
*** Error code 255
make: Fatal error: Command failed for target `blib/lib/Class/.exists'
SUN83-PRODWEB

SUN83-PRODWEB/usr/ccs/bin/make install
mkdir blib/lib: Permission denied at
/usr/local/lib/perl5/5.8.5/ExtUtils/Command.pm line 186
*** Error code 255
make: Fatal error: Command failed for target `blib/lib/Class/.exists'
SUN83-PRODWEB


John W Moon







--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




RE: Installing modules locally, how to

2007-02-20 Thread Moon, John
Thank you, Mumia W.

The following ran... I would have preferred to have installed at
~/cgi-bin/Library _not_ at 
~/cgi-bin/Library/lib/perl5/site_perl/5.8.5... following is the results.

Now when I try to install Ajax it still says it can't find
Class::Accessor

I tried perl -I ~/cgi-bin/Library Makefile.PL PREFIX=~/cgi-bin/Library

Any suggestions will be appreciated.

jwm


umask -S a=rwx
tar xvf Class-Accessor-0.30.tar 
x Class-Accessor-0.30, 0 bytes, 0 tape blocks
x Class-Accessor-0.30/t, 0 bytes, 0 tape blocks
x Class-Accessor-0.30/t/croak.t, 466 bytes, 1 tape blocks
x Class-Accessor-0.30/t/bestpractice.t, 981 bytes, 2 tape blocks
x Class-Accessor-0.30/t/getset.t, 289 bytes, 1 tape blocks
x Class-Accessor-0.30/t/aliases.t, 1086 bytes, 3 tape blocks
x Class-Accessor-0.30/t/accessors.t, 2174 bytes, 5 tape blocks
x Class-Accessor-0.30/lib, 0 bytes, 0 tape blocks
x Class-Accessor-0.30/lib/Class, 0 bytes, 0 tape blocks
x Class-Accessor-0.30/lib/Class/Accessor, 0 bytes, 0 tape blocks
x Class-Accessor-0.30/lib/Class/Accessor/Faster.pm, 2498 bytes, 5 tape
blocks
x Class-Accessor-0.30/lib/Class/Accessor/Fast.pm, 2257 bytes, 5 tape
blocks
x Class-Accessor-0.30/lib/Class/Accessor.pm, 18496 bytes, 37 tape blocks
x Class-Accessor-0.30/README, 1875 bytes, 4 tape blocks
x Class-Accessor-0.30/Changes, 2925 bytes, 6 tape blocks
x Class-Accessor-0.30/Makefile.PL, 293 bytes, 1 tape blocks
x Class-Accessor-0.30/META.yml, 355 bytes, 1 tape blocks
x Class-Accessor-0.30/INSTALL, 294 bytes, 1 tape blocks
x Class-Accessor-0.30/examples, 0 bytes, 0 tape blocks
x Class-Accessor-0.30/examples/benchmark, 1716 bytes, 4 tape blocks
x Class-Accessor-0.30/MANIFEST, 235 bytes, 1 tape blocks
cd Class-Accessor-0.30
perl Makefile.PL PREFIX=/opt/common/html/billing/cgi-bin/Library 
Checking if your kit is complete...
Looks good
Writing Makefile for Class::Accessor
/usr/ccs/bin/make test
cp lib/Class/Accessor/Faster.pm blib/lib/Class/Accessor/Faster.pm
cp lib/Class/Accessor/Fast.pm blib/lib/Class/Accessor/Fast.pm
cp lib/Class/Accessor.pm blib/lib/Class/Accessor.pm
PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e
test_harness(0, 'blib/lib', 'blib/arch') t/*.t
t/accessors...ok
t/aliases.ok
t/bestpracticeok
t/croak...ok
t/getset..ok
All tests successful.
Files=5, Tests=114,  2 wallclock secs ( 0.79 cusr +  0.20 csys =  0.99
CPU)
/usr/ccs/bin/make install
Manifying blib/man3/Class::Accessor::Fast.3
Manifying blib/man3/Class::Accessor::Faster.3
Manifying blib/man3/Class::Accessor.3
Installing
/opt/common/html/billing/cgi-bin/Library/lib/perl5/site_perl/5.8.5/Class
/Accessor.pm
Installing
/opt/common/html/billing/cgi-bin/Library/lib/perl5/site_perl/5.8.5/Class
/Accessor/Faster.pm
Installing
/opt/common/html/billing/cgi-bin/Library/lib/perl5/site_perl/5.8.5/Class
/Accessor/Fast.pm
Installing
/opt/common/html/billing/cgi-bin/Library/share/man/man3/Class::Accessor:
:Fast.3
Installing
/opt/common/html/billing/cgi-bin/Library/share/man/man3/Class::Accessor:
:Faster.3
Installing
/opt/common/html/billing/cgi-bin/Library/share/man/man3/Class::Accessor.
3
Writing
/opt/common/html/billing/cgi-bin/Library/lib/perl5/site_perl/5.8.5/sun4-
solaris/auto/Class/Accessor/.packlist
Appending installation info to
/opt/common/html/billing/cgi-bin/Library/lib/perl5/5.8.5/sun4-solaris/pe
rllocal.pod
umask -S g-wx o-rwx

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Installing modules locally, how to

2007-02-20 Thread Mumia W.

On 02/20/2007 04:17 PM, Moon, John wrote:

Thank you, Mumia W.

The following ran... I would have preferred to have installed at
~/cgi-bin/Library _not_ at 
~/cgi-bin/Library/lib/perl5/site_perl/5.8.5... following is the results.


Now when I try to install Ajax it still says it can't find
Class::Accessor

I tried perl -I ~/cgi-bin/Library Makefile.PL PREFIX=~/cgi-bin/Library

Any suggestions will be appreciated.

jwm

[...]


You might have to set PERL5LIB to /opt/common/html/ before you
install Ajax.

Anyway, it's easier to install modules using the CPAN shell (perldoc
CPAN) than by hand, and that's what I suggest for you.

If you can't use CPAN, another approach would be to uninstall the old 
Class::Accessor that is in the wrong location, and reinstall it using 
commands like (but not necessarily exactly like) these:


cd (into-build-directory)
perl Makefile.PL PREFIX=~/cgi-bin/Library INSTALLSITELIB=~/cgi-bin/Library
make test
make install

PERL5LIB=~/cgi-bin/Library
export PERL5LIB
cd (into-build-directory-for-Ajax)
perl Makefile.PL PREFIX=~/cgi-bin/Library INSTALLSITELIB=~/cgi-bin/Library
make test
make install

Read perldoc ExtUtils::MakeMaker before you do anything.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: installing modules via script

2006-12-21 Thread Mumia W.

On 12/21/2006 10:53 PM, Mathew Snyder wrote:

I have a script which will determine which modules need to be installed for a
certain application.  It will take all of the module names and iterate through
them installing each as such:
system perl -MCPAN -e 'install $module';

I'd rather do this without a system call and instead do it within the script
itself.  How would I do this?  I looked at Module::AutoINC but that appears to
deal with when the script itself needs a module.  However, the modules I'm
installing are for a seperate program.

Mathew



Perldoc CPAN tells you about the programmer's interface for CPAN.pm.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: installing modules via script

2006-12-21 Thread Mathew Snyder
Mumia W. wrote:
 On 12/21/2006 10:53 PM, Mathew Snyder wrote:
 I have a script which will determine which modules need to be
 installed for a
 certain application.  It will take all of the module names and iterate
 through
 them installing each as such:
 system perl -MCPAN -e 'install $module';

 I'd rather do this without a system call and instead do it within the
 script
 itself.  How would I do this?  I looked at Module::AutoINC but that
 appears to
 deal with when the script itself needs a module.  However, the modules
 I'm
 installing are for a seperate program.

 Mathew

 
 Perldoc CPAN tells you about the programmer's interface for CPAN.pm.
 
 
 

Aha!  So this is what I need to iterate instead of the system call?

CPAN::Shell-install($module);

With use CPAN; of course.

Mathew

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: installing modules

2005-09-05 Thread Edgard Padilla

Adriano Allora wrote:


hi to all,

my server-administrator told me I cannot use ssh to install some 
modules (LWP, HTML) on server.


How I can do it using only ftp?

thank a lot,

alladr



|^|_|^|_|^|  |^|_|^|_|^|   
 || ||

 || ||
 ||*\_/*\_/*\_/*\_/*\_/* ||
 |   |
 |   |
 |   |
 |   http://www.e-allora.net|
 |   |
 |   |
**



sftp


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: installing modules using cpan

2005-07-20 Thread Jeff 'japhy' Pinyan

On Jul 20, Octavian Rasnita said:


cpan
cpan install [a_certain_module]


It gives the following errors:

Subroutine Compress::Zlib::deflateStream::msg redefined at
Subroutine Compress::Zlib::inflateStream::DispStream redefined at
Subroutine Compress::Zlib::inflateStream::__unc_inflate redefined at
Subroutine Compress::Zlib::inflateStream::inflate redefined at
Subroutine Compress::Zlib::inflateStream::inflateSync redefined at
Subroutine Compress::Zlib::inflateStream::DESTROY redefined at


Technically speaking, they're not errors, the warnings.  And they seem to 
be arising from Compress::Zlib being sourced multiple times.  How to avoid 
this, I'm not sure.  What version of CPAN.pm do you have?  Perhaps a newer 
version doesn't do this.


--
Jeff japhy Pinyan %  How can we ever be the sold short or
RPI Acacia Brother #734 %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %-- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: installing modules problem - no rule to make target EXTERN.h

2004-11-28 Thread Bob Showalter
James Kearney wrote:
Hi there,
I hope someone out there can help me, I am trying to install some perl
modules - but when i try downloading the modules and compiling them -
or using the cpan shell, then I keep receiving the errors detailed at
the end of this email.
I am specifically attempting to install Unicode::String and
Unicode::Map8, for the program V implementation of a.l.i.c.e - but I
am new to perl module installation...
thank you v much!
(error listing at end)
james.
--8--
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Unicode::String
$ make
cp String.pm blib/lib/Unicode/String.pm
cp lib/Unicode/CharName.pm blib/lib/Unicode/CharName.pm
/usr/bin/perl5.8.5 /usr/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.5/ExtUtils/typemap  String.xs  String.xsc  mv
String.xsc String.c
make: *** No rule to make target
`/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/EXTERN.h', needed
by `String.o'.  Stop.
--8--
Does this article shed any light on the problem:
http://groups.google.com/groups?selm=e4c916dd.0411230022.2395f261%40posting.google.comoutput=gplain
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response



Re: Installing Modules From CPAN

2003-12-23 Thread Joe Echavarria
Hi there, 

  Theses are the messages i get when i try to install
dbd::mysql.  How can i solve this problems ?, Thanks.

cpan install DBD::mysql
Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9003.tar.gz
  Is already unwrapped into directory
/root/.cpan/build/DBD-mysql-2.9003
  Makefile.PL returned status 512
Running make test
  Make had some problems, maybe interrupted? Won't
test
Running make install
  Make had some problems, maybe interrupted? Won't
install

[EMAIL PROTECTED] root]# perl -e 'use
DBI;for(DBI-available_drivers) { print -$_-\n; }'
-ExampleP-
-Multiplex-
-Pg-
-Proxy-
[EMAIL PROTECTED] root]#
[EMAIL PROTECTED] DBD-mysql-2.9003]# rpm -qa | grep -i perl

perl-5.8.0-88
perl-Filter-1.29-3
perl-URI-1.21-7
perl-XML-Dumper-0.4-25
perl-XML-Twig-3.09-3
mod_perl-1.99_07-5
perl-DateManip-5.40-30
perl-HTML-Tagset-3.03-28
perl-Parse-Yapp-1.05-30
perl-libwww-perl-5.65-6
perl-libxml-perl-0.07-28
perl-XML-Encoding-1.01-23
perl-XML-Grove-0.46alpha-25
perl-CPAN-1.61-88
perl-DB_File-1.804-88
perl-DBD-Pg-1.21-2
perl-HTML-Parser-3.26-17
perl-XML-Parser-2.31-15
perl-libxml-enno-1.02-29
perl-DBI-1.32-5

[EMAIL PROTECTED] DBD-mysql-2.9003]# rpm -qa | grep -i mysql
MySQL-server-4.0.17-0

--- Wiggins d Anconia [EMAIL PROTECTED] wrote:
 
 
  Hi there, 
  
  I need to install the modules in order to work
 with
  mysql database.  I have red hat 9 and have already
  installed the Mysql database.  How can i install
 the
  all the modules i need from cpan using my red hat
  command line ?  Which modules i need ?, How i
 install
  each module ?
  
Thanks.
  
 
 
 You will need DBI and DBD::mysql.  These can be
 installed by invoking
 the CPAN shell like so (as root):
 
 perl -MCPAN -e shell 
 
 Then configuring CPAN, questions are pretty self
 explanatory, and then
 typing:
 
 install module name
 
 Alternatively because the modules you seek are
 provided with RH 9 in rpm
 packages it may be easiest to install the modules
 via the RH package
 manager, if they aren't already.
 
 http://danconia.org
 
 --
 Boycott the Sugar Bowl! You couldn't pay me to watch
 that game.
 
 -- 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 http://learn.perl.org/
 http://learn.perl.org/first-response
 
 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Installing Modules From CPAN

2003-12-23 Thread Wiggins d Anconia
Please bottom post...

 Hi there, 
 
   Theses are the messages i get when i try to install
 dbd::mysql.  How can i solve this problems ?, Thanks.
 
 cpan install DBD::mysql
 Running install for module DBD::mysql
 Running make for R/RU/RUDY/DBD-mysql-2.9003.tar.gz
   Is already unwrapped into directory
 /root/.cpan/build/DBD-mysql-2.9003
   Makefile.PL returned status 512
 Running make test
   Make had some problems, maybe interrupted? Won't
 test
 Running make install
   Make had some problems, maybe interrupted? Won't
 install
 

This isn't one I have seen much before. Try removing the unpacked
directory and let CPAN do it again. How was there already a directory?

 [EMAIL PROTECTED] root]# perl -e 'use
 DBI;for(DBI-available_drivers) { print -$_-\n; }'
 -ExampleP-
 -Multiplex-
 -Pg-
 -Proxy-
 [EMAIL PROTECTED] root]#
 [EMAIL PROTECTED] DBD-mysql-2.9003]# rpm -qa | grep -i perl
 
 perl-5.8.0-88
 perl-Filter-1.29-3
 perl-URI-1.21-7
 perl-XML-Dumper-0.4-25
 perl-XML-Twig-3.09-3
 mod_perl-1.99_07-5
 perl-DateManip-5.40-30
 perl-HTML-Tagset-3.03-28
 perl-Parse-Yapp-1.05-30
 perl-libwww-perl-5.65-6
 perl-libxml-perl-0.07-28
 perl-XML-Encoding-1.01-23
 perl-XML-Grove-0.46alpha-25
 perl-CPAN-1.61-88
 perl-DB_File-1.804-88
 perl-DBD-Pg-1.21-2
 perl-HTML-Parser-3.26-17
 perl-XML-Parser-2.31-15
 perl-libxml-enno-1.02-29
 perl-DBI-1.32-5
 
 [EMAIL PROTECTED] DBD-mysql-2.9003]# rpm -qa | grep -i mysql
 MySQL-server-4.0.17-0
 

On my RH 9.0 box I have:

$ rpm -qa | grep -i 'perl' | grep -i 'mysql'
perl-DBD-MySQL-2.1021-3

$ rpm -q --provides perl-DBD-MySQL-2.1021-3
mysql.so
perl(Bundle::DBD::mysql) = 2.0416
perl(DBD::mysql) = 2.1021
perl(DBD::mysql::db)
perl(DBD::mysql::dr)
perl(DBD::mysql::st)
perl(Mysql) = 1.2401
perl(Mysql::db)
perl(Mysql::dr)
perl(Mysql::st)
perl(Mysql::Statement) = 1.2401
perl-DBD-MySQL = 2.1021-3

It is not a standard install package, but is available on one of the
disks, sorry don't remember which.

http://danconia.org

--
Boycott the Sugar Bowl! You couldn't pay me to watch that game.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Installing Modules From CPAN

2003-12-23 Thread Joe Echavarria
Wiggins, 


This is the error i get trying installing the package
:


[EMAIL PROTECTED] root]# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules
installation (v1.61)
ReadLine support available (try 'install
Bundle::CPAN')

cpan install DBD::mysql
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://cpan.cse.msu.edu/authors/01mailrc.txt.gz
Going to read
/root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
 
ftp://cpan.cse.msu.edu/modules/02packages.details.txt.gz
Going to read
/root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Mon, 22 Dec 2003 22:47:41
GMT

  There's a new CPAN.pm version (v1.76) available!
  [Current version is v1.61]
  You might want to try
install Bundle::CPAN
reload cpan
  without quitting the current session. It should be a
seamless upgrade
  while we are running...

Fetching with LWP:
  ftp://cpan.cse.msu.edu/modules/03modlist.data.gz
Going to read
/root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9003.tar.gz
Fetching with LWP:
 
ftp://cpan.cse.msu.edu/authors/id/R/RU/RUDY/DBD-mysql-2.9003.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
 
ftp://cpan.cse.msu.edu/authors/id/R/RU/RUDY/CHECKSUMS
Checksum for
/root/.cpan/sources/authors/id/R/RU/RUDY/DBD-mysql-2.9003.tar.gz
ok
Scanning cache /root/.cpan/build for sizes
DBD-mysql-2.9003/
DBD-mysql-2.9003/t/
DBD-mysql-2.9003/t/mysql2.t
/bin/tar: DBD-mysql-2.9003/t/mysql2.t: time stamp
2003-03-30 20:16:53 is 633945 s in the future
DBD-mysql-2.9003/t/akmisc.t
/bin/tar: DBD-mysql-2.9003/t/akmisc.t: time stamp
2003-03-30 20:16:53 is 633945 s in the future
DBD-mysql-2.9003/t/60leaks.t
/bin/tar: DBD-mysql-2.9003/t/60leaks.t: time stamp
2003-09-12 11:50:32 is 14942364 s in the future
DBD-mysql-2.9003/t/10dsnlist.t
DBD-mysql-2.9003/t/ak-dbd.t
DBD-mysql-2.9003/t/50chopblanks.t
DBD-mysql-2.9003/t/mysql.t
/bin/tar: DBD-mysql-2.9003/t/mysql.t: time stamp
2003-03-30 20:16:53 is 633945 s in the future
DBD-mysql-2.9003/t/lib.pl
/bin/tar: DBD-mysql-2.9003/t/lib.pl: time stamp
2003-08-28 16:34:33 is 13663405 s in the future
DBD-mysql-2.9003/t/40blobs.t
DBD-mysql-2.9003/t/40nulls.t
DBD-mysql-2.9003/t/insertid.t
DBD-mysql-2.9003/t/40listfields.t
/bin/tar: DBD-mysql-2.9003/t/40listfields.t: time
stamp 2003-10-22 14:29:35 is 18407907 s in the f
uture
DBD-mysql-2.9003/t/40bindparam.t
DBD-mysql-2.9003/t/mysql.dbtest
/bin/tar: DBD-mysql-2.9003/t/mysql.dbtest: time stamp
2003-09-12 11:57:46 is 14942798 s in the fut
ure
DBD-mysql-2.9003/t/dbdadmin.t
/bin/tar: DBD-mysql-2.9003/t/dbdadmin.t: time stamp
2003-09-12 11:56:21 is 14942713 s in the futur
e
DBD-mysql-2.9003/t/20createdrop.t
DBD-mysql-2.9003/t/00base.t
DBD-mysql-2.9003/t/30insertfetch.t
DBD-mysql-2.9003/t/40numrows.t
DBD-mysql-2.9003/t/50commit.t
/bin/tar: DBD-mysql-2.9003/t/50commit.t: time stamp
2003-08-28 16:31:13 is 13663205 s in the futur
e
DBD-mysql-2.9003/t/mysql.mtest
/bin/tar: DBD-mysql-2.9003/t/mysql.mtest: time stamp
2003-10-26 22:32:59 is 18786111 s in the futu
re
DBD-mysql-2.9003/MANIFEST
/bin/tar: DBD-mysql-2.9003/t: time stamp 2003-10-26
22:33:28 is 18786140 s in the future
/bin/tar: DBD-mysql-2.9003/MANIFEST: time stamp
2003-06-16 02:07:07 is 7304159 s in the future
DBD-mysql-2.9003/myld
/bin/tar: DBD-mysql-2.9003/myld: time stamp 2003-08-07
12:44:58 is 11835230 s in the future
DBD-mysql-2.9003/dbdimp.c
/bin/tar: DBD-mysql-2.9003/dbdimp.c: time stamp
2003-10-17 13:20:50 is 17971782 s in the future
DBD-mysql-2.9003/lib/
DBD-mysql-2.9003/lib/DBD/
DBD-mysql-2.9003/lib/DBD/mysql/
DBD-mysql-2.9003/lib/DBD/mysql/GetInfo.pm
/bin/tar: DBD-mysql-2.9003/lib/DBD/mysql/GetInfo.pm:
time stamp 2003-03-31 20:17:27 is 720379 s in
 the future
DBD-mysql-2.9003/lib/DBD/mysql/INSTALL.pod
/bin/tar: DBD-mysql-2.9003/lib/DBD/mysql/INSTALL.pod:
time stamp 2003-07-16 23:00:13 is 9971345 s
in the future
DBD-mysql-2.9003/lib/DBD/mysql.pm
/bin/tar: DBD-mysql-2.9003/lib/DBD/mysql: time stamp
2003-10-26 22:33:28 is 18786140 s in the futu
re
/bin/tar: DBD-mysql-2.9003/lib/DBD/mysql.pm: time
stamp 2003-10-26 22:26:08 is 18785700 s in the f
uture
DBD-mysql-2.9003/lib/Mysql/
/bin/tar: DBD-mysql-2.9003/lib/DBD: time stamp
2003-10-26 22:33:28 is 18786140 s in the future
DBD-mysql-2.9003/lib/Mysql/Statement.pm
DBD-mysql-2.9003/lib/Bundle/
/bin/tar: DBD-mysql-2.9003/lib/Mysql: time stamp
2003-10-26 22:33:28 is 18786140 s in the future
DBD-mysql-2.9003/lib/Bundle/DBD/
DBD-mysql-2.9003/lib/Bundle/DBD/mysql.pm
/bin/tar: DBD-mysql-2.9003/lib/Bundle/DBD/mysql.pm:
time stamp 2003-06-24 01:37:25 is 7993577 s in
 the future
DBD-mysql-2.9003/lib/Mysql.pm
/bin/tar: DBD-mysql-2.9003/lib/Bundle/DBD: time stamp
2003-10-26 22:33:28 is 18786140 s in the fut
ure
/bin/tar: DBD-mysql-2.9003/lib/Bundle: time stamp
2003-10-26 22:33:28 is 18786140 s in the future
/bin/tar: DBD-mysql-2.9003/lib/Mysql.pm: time stamp
2003-10-17 13:20:50 is 17971782 s 

Re: Installing Modules From CPAN

2003-12-23 Thread Wiggins d Anconia
Please bottom post.

 Wiggins, 
 
 
 This is the error i get trying installing the package
 :
 
 
 [EMAIL PROTECTED] root]# perl -MCPAN -e shell
 
 cpan shell -- CPAN exploration and modules
 installation (v1.61)
 ReadLine support available (try 'install
 Bundle::CPAN')
 
 cpan install DBD::mysql

snip usual CPAN junk and warnings from tar

 
   CPAN.pm: Going to build
 R/RU/RUDY/DBD-mysql-2.9003.tar.gz
 
 Can't exec mysql_config: No such file or directory
 at Makefile.PL line 174.

The above is your first problem. MySQL comes with a program that helps
make determine settings for where to find mysql specific files, such as
headers and libs, etc.  That program needs to be installed and in your
path, usually /usr/bin/mysql_config.  The program is supplied in either
the MySQL client package or the MySQL-devel package, I am not sure
which. I have the following two packages installed:

mysql-3.23.58-1.9
mysql-devel-3.23.58-1.9

The second is almost for sure required to build the Perl module, the
first may be.  

 
 
 [EMAIL PROTECTED] root]# rpm -qa | grep -i 'perl' | grep -i
 'mysql'
 [EMAIL PROTECTED] root]# rpm -q --provides
 perl-DBD-MySQL-2.1021-3
 package perl-DBD-MySQL-2.1021-3 is not installed
 

Right the above indicates you do not have the Perl MySQL module rpm
installed. This is really an either/or strategy, you can install either
the RPM or from CPAN.  I suspect that installing the above will require
either the mysql-devel or mysql client rpms previously mentioned.

http://danconia.org

--
Boycott the Sugar Bowl! You couldn't pay me to watch that game.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Installing Modules From CPAN

2003-12-23 Thread Joe Echavarria
I just installed the client package and devel package,
and now i get another error :

DBD-mysql-2.9003/Makefile.PL
/bin/tar: DBD-mysql-2.9003/Makefile.PL: time stamp
2003-10-17 13:20:50 is 17961752 s in the future
DBD-mysql-2.9003/ChangeLog
/bin/tar: DBD-mysql-2.9003/ChangeLog: time stamp
2003-10-26 22:25:36 is 18775638 s in the future
DBD-mysql-2.9003/constants.h
DBD-mysql-2.9003/TODO
/bin/tar: DBD-mysql-2.9003/TODO: time stamp 2003-06-16
02:07:07 is 7294129 s in the future
/bin/tar: DBD-mysql-2.9003: time stamp 2003-10-26
22:33:28 is 18776110 s in the future
Removing previously used
/root/.cpan/build/DBD-mysql-2.9003

  CPAN.pm: Going to build
R/RU/RUDY/DBD-mysql-2.9003.tar.gz

I will use the following settings for compiling and
testing:

  cflags(mysql_config) = -I/usr/include/mysql
-mcpu=i486 -fno-strength-reduce
  libs  (mysql_config) = -L/usr/lib/mysql
-lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_fi
les -lnss_dns -lresolv -lc -lnss_files -lnss_dns
-lresolv
  nocatchstderr (default ) = 0
  nofoundrows   (default ) = 0
  ssl   (guessed ) = 0
  testdb(default ) = test
  testhost  (default ) =
  testpassword  (default ) =
  testuser  (default ) =

To change these settings, see 'perl Makefile.PL
--help' and
'perldoc INSTALL'.


Checking if your kit is complete...
Looks good
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 97.
Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm l
ine 

RE: Installing Modules From CPAN

2003-12-22 Thread Dan Muey

 
 Hi there, 

Howdy.

 
 I need to install the modules in order to work with
 mysql database.  I have red hat 9 and have already
 installed the Mysql database.  How can i install the
 all the modules i need from cpan using my red hat
 command line ?  Which modules i need ?, How i install
 each module ?

First see if you have them:
# perl -e 'use DBI;for(DBI-available_drivers) { print -$_-\n; }'
-ExampleP-
-Proxy-
-mysql-
#
If you get DBI.pm not found you need DBI, but that's a core module.
Otherwise all you need is the mysql driver, if it's not in the list the command above 
gives then you need that one. (IE the -mysql- line)

I would check those first as you probably already have them.

HTH

DMuey

 
   Thanks.
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing. 
http://photos.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ 
http://learn.perl.org/first-response



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Installing Modules From CPAN

2003-12-22 Thread Wiggins d Anconia


 Hi there, 
 
 I need to install the modules in order to work with
 mysql database.  I have red hat 9 and have already
 installed the Mysql database.  How can i install the
 all the modules i need from cpan using my red hat
 command line ?  Which modules i need ?, How i install
 each module ?
 
   Thanks.
 


You will need DBI and DBD::mysql.  These can be installed by invoking
the CPAN shell like so (as root):

perl -MCPAN -e shell 

Then configuring CPAN, questions are pretty self explanatory, and then
typing:

install module name

Alternatively because the modules you seek are provided with RH 9 in rpm
packages it may be easiest to install the modules via the RH package
manager, if they aren't already.

http://danconia.org

--
Boycott the Sugar Bowl! You couldn't pay me to watch that game.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




RE: Installing modules

2003-10-16 Thread Wiggins d'Anconia


On Thu, 16 Oct 2003 14:18:49 +0300, Octavian Rasnita [EMAIL PROTECTED] wrote:

 Hi all,
 
 Does anyone know how could I install the DBI and DBD::mysql modules under
 Red Hat if I don't have root rights?
 

http://groups.google.com/groups?q=wiggins+CPAN+o+conf+group:perl.beginners.*hl=enlr=ie=UTF-8oe=UTF-8group=perl.beginners.*selm=200309101906.h8AJ6To30565%40smapp01.siteprotect.comrnum=2

See if that helps. You will have to have the mysql-devel libs installed already. 
Assuming you do then you can fire up CPAN, set your make destination directory and it 
should do the rest. If you have to install the mysql stuff yourself and CPAN isn't 
picking up the includes then come back with the error message that you get and I (we) 
can probably get your CPAN sorted.  It has a lot of options and switches which can be 
confusing, but in the end it is pretty powerful.   Of course perldoc CPAN yourself if 
you want to try to make sense of it all. I learned through that and trial and error...

Obviously with root privileges there are RPMs provided by RH 9, but you said you 
didn't have those [privileges]. 

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Installing Modules

2003-08-14 Thread NYIMI Jose (BMB)
For installations on Windows, read
http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html

José.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 12:04 PM
To: [EMAIL PROTECTED]
Subject: Installing Modules


Hi all i am newbie in perl!

How could i install any module i want?

Thanks in advance!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 DISCLAIMER 

This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Installing Modules

2003-08-14 Thread Janek Schleicher
sc0017 wrote at Mon, 11 Aug 2003 13:04:12 +0300:

 Hi all i am newbie in perl!
 
 How could i install any module i want?

Read
perldoc -q install
and
perldoc perlmodinstall


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: installing modules

2003-06-23 Thread Janek Schleicher
Mario Kulka wrote at Mon, 23 Jun 2003 03:40:03 +:

 Could anyone give me step by tep instructions on how to install a perl 
 module (MD5) on my host server. How come they don't have it installed? Isn't 
 popular enough?

BTW, the MD5 module is deprecated. It is recommended to install
Digest::MD5 instead.

The simplest way to install it is to type
perl -MCPAN -e 'install Digest::MD5'

The other, more classical way to install is to get the
package from cpan
(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-MD5-2.24.tar.gz)
to unpack it and then to follow the normal way
perl Makefile.PL
make
make test
make install
 (last as root)

Please read also
perldoc perlmodinstall
to get a more detailed explication.


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: installing modules

2003-06-23 Thread zentara
On Mon, 23 Jun 2003 03:40:03 +, [EMAIL PROTECTED] (Mario Kulka)
wrote:

Could anyone give me step by tep instructions on how to install a perl 
module (MD5) on my host server. How come they don't have it installed? Isn't 
popular enough?

Sorry if I sent the same message for the second time, but the prvious one 
doesn't came through on my list.

There are 2 different MD5 modules available: one has a compiled
component, and one is pure perl.

You probably want the pure perl version, Digest-Perl-MD5-1.5.
On most servers, users don't get access to a c compiler, so you
won't be able to compile the preferred and faster MD5 module.

So this is what you do.
1. Get the pure perl MD5 module Digest-Perl-MD5-1.5 from http://cpan.org
2. Since it is pure perl, all you should need to do is install it on
your local machine, then upload the MD5.pm to your homedir on the
server, and put it  somewhere like /home/yourname/perl5lib/MD5.pm
3. Then in your .bashrc put a line 
 export PERL5LIB='/home/yourname/perl5lib'

Now you can say use MD5.pm at the top of your scripts.

There are other ways to do it, but that is the simplest.
You can upload the whole tgz package to your homedir,
and actually install it in your homedir, you just specify your
install path to be /home/yourname as explained in the install docs.





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Installing modules

2002-12-04 Thread Beau E. Cox
Hi Marco,

1) which dmake are you using, where did you get it?

2) can you post a snippet of your makefile (around the
   offending line?

Will try to reproduce your problem here...

Aloha = Beau.

-Original Message-
From: Marco Centemeri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 9:38 PM
To: [EMAIL PROTECTED]
Subject: Installing modules


Hello All,

I'm trying to install on win2000 the following modules:

IO::Stringy
MailTools

The command 'perl makefile.pl' works but then when I run dmake
I always get the following error:

'Expecting macro or rule defn, found neither'

See below snippet of command lines -

***

D:\temp\IO-stringy-2.108perl.exe Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for IO-stringy

D:\temp\IO-stringy-2.108dmake
dmake.exe:  makefile:  line 668:  Error -- Expecting macro or rule defn,
found
neither




Pls. Can somebody help me to overcome the problem?


Thanks a lot

  Marco Centemeri
--

Eng. MARCO CENTEMERI

 Telecommunication and Peripherals/Automotive Groups
 Audio  Automotive Division
 Automotive Business Unit
 Bosch Product Engineer

STMicroelectronics Srl Tel: +39.039.603.5784
20041 Agrate Brianza - Italy   Fax: +39.039.603.6343
Via C. Olivetti, 2  Mobile: +39.0348.8861577
Building F11  [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing modules

2002-12-04 Thread Marco Centemeri
It WORKS!!!

Thanks Again

  Marco Centemeri
---
[EMAIL PROTECTED] wrote:
 
 From: Marco Centemeri [EMAIL PROTECTED]
  I'm trying to install on win2000 the following modules:
 
  IO::Stringy
  MailTools
 
  The command 'perl makefile.pl' works but then when I run dmake
  I always get the following error:
 
  'Expecting macro or rule defn, found neither'
 
 You have to tell Perl to generate the Makefile in dmake format.
 Open c:\perl\lib\Config.pm search for make= and change the line to
 make='dmake'
 (In my Configm.pm it's line 626)
 
 There are some incompatibilities between standard Unix make, dmake
 and Microsoft's nmake.
 
 Jenda
 
 = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
 When it comes to wine, women and song, wizards are allowed
 to get drunk and croon as much as they like.
 -- Terry Pratchett in Sourcery
 
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 

Eng. MARCO CENTEMERI

 Telecommunication and Peripherals/Automotive Groups
 Audio  Automotive Division
 Automotive Business Unit
 Bosch Product Engineer

STMicroelectronics Srl Tel: +39.039.603.5784
20041 Agrate Brianza - Italy   Fax: +39.039.603.6343
Via C. Olivetti, 2  Mobile: +39.0348.8861577
Building F11  [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing Modules into Home Directory

2002-10-01 Thread Paul Johnson

On Tue, Oct 01, 2002 at 12:33:34PM -0400, Balint, Jess wrote:

 Hi all. I have most of the perl modules that I use installed into my home
 directory. I am trying to install some that depend on others. This is simple
 enough to add a use lib into the Makefile.PL , but I can't seem to figure
 out how to set this when running tests. I tried inserting it into the t
 files, but to no avail. Any help appreciated.

No need to change any files.  Set your PERL5LIB environment variable.

perldoc perlrun for the details.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing modules without a C compiler

2002-05-14 Thread Elaine -HFB- Ashton

Craig Moynes/Markham/IBM [[EMAIL PROTECTED]] quoth:
*
*
*Ok that seems to do the trick, the only thing I am worried about is during
*the installation to the real directory some data is appended to
*perllocal.pod. The documentation for MakeMaker say you can disable this
*with pure_install, but I can't find anywhere that explains the use of
*perllocal.pod.
*
*A quick look at its contents show multiple copies of modules I have
*installed locally (due to not uninstalling I imagine).
*
*Does anyone know about the need for perllocal.pod ?

perllocal is a crude but effective accounting system for perl. You aren't
really supposed to use it per se as it isn't really useful for anything
other than looking to verify that $module was, in fact, installed on
$system at any given time since there are easier and more efficient ways
of obtaining the list of installed modules. So, unless you have a burning
need to fiddle with it, it ain't broke so don't fix it :)

e.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing modules without a C compiler

2002-05-13 Thread Chas Owens

On Mon, 2002-05-13 at 15:01, Craig Moynes/Markham/IBM wrote:
 Hi all,
   Our servers are set up with a single development box, that contains
 all the compilers and what not.  All the modules I need to install have to
 be compiled on the development box, and then installed on each server (make
 install).  This works for now, (thanks to nfs) but I would like to package
 up the installed files so I can just drop them on boxes when needed, and
 also to back up the install files so I can remove the source directory.
 
 Now I have installed a few modules, and I was just wondering if there was
 somewhere in those monsterous makefiles that I can see where and what is
 installed, or perhaps a verbose install mode so I can see exactly what is
 going where.
 
 I have seen the TO_INST_PM rule, which seems like it may lead to what I am
 looking for.  Should I watch for anything else ?
 
 Thanks for your help,
   Craig
 
 -
 Craig Moynes
 [EMAIL PROTECTED]
 

One method is to install into a temporary directory hierarchy (ie
/tmp/modulename/usr instead of /usr). 

-- 
Today is Pungenday the 60th day of Discord in the YOLD 3168
This statement is false.

Missile Address: 33:48:3.521N  84:23:34.786W


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing modules without a C compiler

2002-05-13 Thread Craig Moynes/Markham/IBM



Ok that seems to do the trick, the only thing I am worried about is during
the installation to the real directory some data is appended to
perllocal.pod. The documentation for MakeMaker say you can disable this
with pure_install, but I can't find anywhere that explains the use of
perllocal.pod.

A quick look at its contents show multiple copies of modules I have
installed locally (due to not uninstalling I imagine).

Does anyone know about the need for perllocal.pod ?

Thanks again,

-
Craig Moynes
[EMAIL PROTECTED]



   

  Chas Owens   

  cowens@intercallTo:   Craig 
Moynes/Markham/IBM@IBMCA
  .comcc:   [EMAIL PROTECTED]

   Subject:  Re: Installing modules 
without a C compiler   
  05/13/02 03:07 PM

  Please respond to

  Chas Owens   

   

   




On Mon, 2002-05-13 at 15:01, Craig Moynes/Markham/IBM wrote:
 Hi all,
   Our servers are set up with a single development box, that contains
 all the compilers and what not.  All the modules I need to install have
to
 be compiled on the development box, and then installed on each server
(make
 install).  This works for now, (thanks to nfs) but I would like to
package
 up the installed files so I can just drop them on boxes when needed,
and
 also to back up the install files so I can remove the source directory.

 Now I have installed a few modules, and I was just wondering if there was
 somewhere in those monsterous makefiles that I can see where and what is
 installed, or perhaps a verbose install mode so I can see exactly what is
 going where.

 I have seen the TO_INST_PM rule, which seems like it may lead to what I
am
 looking for.  Should I watch for anything else ?

 Thanks for your help,
   Craig

 -
 Craig Moynes
 [EMAIL PROTECTED]


One method is to install into a temporary directory hierarchy (ie
/tmp/modulename/usr instead of /usr).

--
Today is Pungenday the 60th day of Discord in the YOLD 3168
This statement is false.

Missile Address: 33:48:3.521N  84:23:34.786W


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing modules on website

2002-03-20 Thread Jenda Krynicky

From:   [EMAIL PROTECTED]

 I was reading and came across this code:
 I put the contents of Image-Size-2.98 under the Image directory.
 
 use lib qw(/home/yrkylady/www/cgi-bin/perl/Image);
 eval(use Image::Size 2.98;);
 (print(Error: $@), exit(-1)) if $@;
 
 And when I try to open my file I get this error:
 
 Error: Can't locate Image/Size.pm in @INC (@INC contains: 

If the Size.pm is in /home/yrkylady/www/cgi-bin/perl/Image/ 
directory then the use lib statement should look like this:

use lib qw(/home/yrkylady/www/cgi-bin/perl);

Notice that the Image is NOT included in the path.

Jenda


=== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing modules on website

2002-03-20 Thread Motherofperls

That did the trick thankyou!





Re: installing modules

2001-11-13 Thread EternalLifeThereAfter

- Original Message -
From: Rahul Garg [EMAIL PROTECTED]
To: Dave Storrs [EMAIL PROTECTED]; [EMAIL PROTECTED];
eventualdeath [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 2:49 PM
Subject: Re: installing modules


 But
 if i want to have my module(say, same as above)  in  /usr/home/rahul/
 instead of  /usr/local/lib/perl5/site_perl
 then how i can put that directory in @INC...what then exacly i have to
do..

My guess is that @INC is inside perl.exe.



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: installing modules

2001-11-13 Thread Rahul Garg

i have actually got the solution.
if i have the module Bar.pm in  directory  '/usr/home/rahul/myMod'
then in the perl script that uses this module i have to include the
statement

use lib '/usr/home/rahul/myMod' ;
use Bar ;

Thanks,
Rahul

- Original Message -
From: EternalLifeThereAfter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 2:28 PM
Subject: Re: installing modules


 - Original Message -
 From: Rahul Garg [EMAIL PROTECTED]
 To: Dave Storrs [EMAIL PROTECTED]; [EMAIL PROTECTED];
 eventualdeath [EMAIL PROTECTED]
 Sent: Monday, November 12, 2001 2:49 PM
 Subject: Re: installing modules


  But
  if i want to have my module(say, same as above)  in  /usr/home/rahul/
  instead of  /usr/local/lib/perl5/site_perl
  then how i can put that directory in @INC...what then exacly i have to
 do..

 My guess is that @INC is inside perl.exe.




 _

 Do You Yahoo!?

 Get your free @yahoo.com address at http://mail.yahoo.com




 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: installing modules

2001-11-13 Thread Dave Storrs



On Tue, 13 Nov 2001, Rahul Garg wrote:

 i have actually got the solution.
 if i have the module Bar.pm in  directory  '/usr/home/rahul/myMod'
 then in the perl script that uses this module i have to include the
 statement

 use lib '/usr/home/rahul/myMod' ;
 use Bar ;

 Thanks,
 Rahul


Yep, that will certainly do it, and is often the best way.  Another way to
do it described here (ref PERL5LIB and PERLLIB vars):
http://www.perldoc.com/perl5.6/pod/perlrun.html#ENVIRONMENT


Dave


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: installing modules

2001-11-11 Thread Rahul Garg

Yes, my question was  about how to install my OWN
modules and ur explanation worked very well...
one more Question :

U said,If I created a directory in /usr/local/lib/perl5/site_perl   named
 'Foo/' and in that directory I put a file named 'Bar.pm', then I could use
 that module by doing:
 use Foo::Bar;
it worked very well
But
if i want to have my module(say, same as above)  in  /usr/home/rahul/
instead of  /usr/local/lib/perl5/site_perl
then how i can put that directory in @INC...what then exacly i have to do..

Thanks,
Rahul


- Original Message -
From: Dave Storrs [EMAIL PROTECTED]
To: Martin Pfeffer [EMAIL PROTECTED]
Cc: Rahul Garg [EMAIL PROTECTED]; Perl 6 Beginners list
[EMAIL PROTECTED]
Sent: Saturday, November 10, 2001 2:03 AM
Subject: Re: installing modules




 Since I suspect your next question would be Ok, then how do I install the
 CPAN module? let me head this one off.

 The CPAN module (CPAN.pm) comes with the basic distro of Perl, so you
 should already have it.  Say you want to install the CGI.pm module from
 CPAN.  At your command line, you type:
 perl -MCPAN -e 'install CGI'
 The -MCPAN means use a module (-M), specifically, CPAN.pm.  The -e means
 the script will be specified on the command line.

 If this is the first time you've ever used CPAN, it will need to ask you a
 LONG set of questions...don't be intimidated, it provides default answers
 to pretty much everything, and the defaults are generally correct.


 However, your question seems to have been about how to install your OWN
 modules.  Do this:
 perl -e 'print join \n, @INC, \n;'
 This will dump out a list of directories.  On my system, the list is this:
 /usr/local/lib/perl5/5.6.1/alpha-dec_osf
 /usr/local/lib/perl5/5.6.1
 /usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf
 /usr/local/lib/perl5/site_perl/5.6.1
 /usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf
 /usr/local/lib/perl5/site_perl/5.6.0
 /usr/local/lib/perl5/site_perl
 .
 Now, if I put a file named Foo.pm in /usr/local/lib/perl5/site_perl, I
 could then tell Perl to use that file as a module in one of my scripts by
 putting the following line at the top of the script:
 use Foo;

 If I created a directory in /usr/local/lib/perl5/site_perl   named
 'Foo/' and in that directory I put a file named 'Bar.pm', then I could use
 that module by doing:
 use Foo::Bar;

 Hope this helps.

 Dave


 On Fri, 9 Nov 2001, Martin Pfeffer wrote:

  Install the CPAN Module
  Then type install Modulname
 
  Hope it helps
  martin
 
  Rahul Garg wrote:
 
   well,
  
   i want to install modules on my system(linux) that i have made.
   what i know is they are to be installed at @INC.
   but exactly how.any suggestions
   any sources for reading...
  
   Bye,
   Rahul
  
  
 
 
 


 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: installing modules

2001-11-09 Thread Martin Pfeffer

Install the CPAN Module
Then type install Modulname

Hope it helps
martin

Rahul Garg wrote:

 well,
 
 i want to install modules on my system(linux) that i have made.
 what i know is they are to be installed at @INC.
 but exactly how.any suggestions
 any sources for reading...
 
 Bye,
 Rahul
 
 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: installing modules

2001-11-09 Thread Dave Storrs



Since I suspect your next question would be Ok, then how do I install the
CPAN module? let me head this one off.

The CPAN module (CPAN.pm) comes with the basic distro of Perl, so you
should already have it.  Say you want to install the CGI.pm module from
CPAN.  At your command line, you type:
perl -MCPAN -e 'install CGI'
The -MCPAN means use a module (-M), specifically, CPAN.pm.  The -e means
the script will be specified on the command line.

If this is the first time you've ever used CPAN, it will need to ask you a
LONG set of questions...don't be intimidated, it provides default answers
to pretty much everything, and the defaults are generally correct.


However, your question seems to have been about how to install your OWN
modules.  Do this:
perl -e 'print join \n, @INC, \n;'
This will dump out a list of directories.  On my system, the list is this:
/usr/local/lib/perl5/5.6.1/alpha-dec_osf
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.
Now, if I put a file named Foo.pm in  /usr/local/lib/perl5/site_perl, I
could then tell Perl to use that file as a module in one of my scripts by
putting the following line at the top of the script:
use Foo;

If I created a directory in /usr/local/lib/perl5/site_perl   named
'Foo/' and in that directory I put a file named 'Bar.pm', then I could use
that module by doing:
use Foo::Bar;

Hope this helps.

Dave


On Fri, 9 Nov 2001, Martin Pfeffer wrote:

 Install the CPAN Module
 Then type install Modulname

 Hope it helps
 martin

 Rahul Garg wrote:

  well,
 
  i want to install modules on my system(linux) that i have made.
  what i know is they are to be installed at @INC.
  but exactly how.any suggestions
  any sources for reading...
 
  Bye,
  Rahul
 
 





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Installing modules in a different file

2001-05-31 Thread Elaine -HFB- Ashton

Mark Ross [[EMAIL PROTECTED]] quoth:
*Hi all,
*
*I was wondering if someone could point me in the direction where I could
*find out how, if even possible, to install Perl modules in a different
*directory (like /cgi/module_library/). I don't have root access to the
*server. Is there a way around this?

CPAN, amazingly, has a FAQ. 

http://www.cpan.org/misc/cpan-faq.html 

It even answers this question and the logical question  that follows it.

e.