Cygwin-Perl upgrade and modules

2004-08-24 Thread Gary Nielson
The other day, I decided to finally update all my cygwin packages with
setup.exe -- including perl. Went from 5.8.0 to 5.8.5 and now realize that
the path to all the modules I installed is under the older version at
/usr/lib/perl5/site_perl/5.8.0 instead of  /usr/lib/perl5/site_perl/5.8.5.
I've always shied away from upgrading perl in Linux so don't have much
experience dealing with modules from older installations. Must I re-install
all these modules, or can I add a path to them in my scripts, or should I
revert back to the older version of perl and if so, how? Any help
appreciated.

-- Gary



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Perl CPAN module help

2003-11-18 Thread Gary Nielson
Whoa! That was impressive. Thank you so much for all your time. I appreciate
it and hope I can help you and others in this group sometime.

-Original Message-
From: Peter J. Acklam [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 10:29 AM
To: Gary Nielson
Cc: Peter J. Acklam; [EMAIL PROTECTED]
Subject: Re: Perl CPAN module help


Gary Nielson [EMAIL PROTECTED] wrote:

 Thank you so much. If I wanted to start fresh with a new perl
 installation -- replacing the executables and all the modules --
 how do you recommend I do this under cygwin.

  - Run setup.exe and uninstall all versions of perl.

  - Manually remove the perl library directory

   rm -rf /usr/lib/perl5

  - Run setup.exe and install perl.

  - Start the CPAN shell.

   cpan

  - You'll be prompted for a lot of information.  I accept the
default everywhere, with the following exceptions:

  - CPAN build and cache directory? [...]  /.cpan
 ^^
  - What is your favorite shell? /usr/bin/bash
   ^
  - Every Makefile.PL is run by perl in a separate process. Likewise we
...
Your choice:  [] PREFIX=/usr/local
  ^
  - Now we need to know where your favorite CPAN sites are located.
Push
a few sites onto the array (just in case the first on the array
won't
...
(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America

Here you must make a choice depending on your location.
Since I'm in Norway, I chose continent 4 (Europe),
contries 20 and 28 (Norway and Sweden) and then all the
sites that were listed.

   - Now you should see something like

   cpan shell -- CPAN exploration and modules installation (v1.7601)
   ReadLine support enabled

   cpan

   - Remember to set the PERL5LIB environment variable with one of
 these (depending on whether you're using a C-shell or a
 Bourne shell):

   setenv PERL5LIB /usr/local/lib/perl5:/usr/local/lib/perl5/site_perl

   PERL5LIB=/usr/local/lib/perl5:/usr/local/lib/perl5/site_perl
   export PERL5LIB

   - If you install the LWP module (or better yet Bundle::LWP),
 don't install the HEAD alias, since you'll end up with a name
 conflict with the standard head utility.

*Whew*  That should be all, I think.

Peter

--
Peter J. Acklam - [EMAIL PROTECTED] - http://home.online.no/~pjacklam




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Perl CPAN module help

2003-11-17 Thread Gary Nielson
Thank you for your help. I understand what you are saying here. I will try
installing under /usr/local. My question, though, is what do I do about all
the modules I've installed under /usr? How do I deal with them? Do I need to
re-install them under /usr/local? Do I then need to somehow remove them from
/usr? Or can I have modules under both directories, leaving the ones that
work under /usr and place new ones under /usr/local?

-Original Message-
From: Peter J. Acklam [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 1:40 AM
To: Gary Nielson
Cc: Peter J. Acklam; [EMAIL PROTECTED]
Subject: Re: Perl CPAN module help


Gary Nielson [EMAIL PROTECTED] wrote:

 I am getting somewhere. I used setup and installed needed
 executables such as gcc. Did a force install in cpan for LWP
 modules and it seemed to be go great. All tests were successful
 in make test. But when running make install I got the error:

You shouldn't use force install unless you really know what
you're doing.  If your module fails a regular install you should
investigate the problem and find the solution rather than do a
force install.  With a force install you are likely to install
modules which fail some way on your system and hence shouldn't
have been installed.

 Cannot forceunlink /usr/bin/HEAD: No such file or directory at
 /usr/lib/perl5/5.8.0/File/Find.pm line 873.
 make: *** [pure_site_install] Error 255
 /usr/bin/make install -- NOT OK.

 The Find.pm line in question is: { $wanted_callback-() }; #
 protect against wild next

When installing LWP you are asked whether you want to install the
GET, HEAD, and POST programs.  You have chosed yes or the force
install did it for you.  Either way, it was discovered that HEAD
exists (as /usr/bin/head.exe) and Perl is trying to remove it, but
although which head says /usr/bin/HEAD, there really is no
/usr/bin/HEAD.exe, it's /usr/bin/head.exe.  The problem is
that which matches case insensitively, but rm doesn't.

The solution is:  Don't install CPAN modules under /usr, use
/usr/local!  When you install modules without CPAN, use the
steps

perl Makefile.PL PREFIX=/usr/local
make
make test
make install

this is done with the CPAN shell by setting

cpan o conf makepl_arg PREFIX=/usr/local
cpan o conf commit

 Any idea what is going wrong, or is the question better posed to
 a perl forum?

The head vs HEAD is a Cygwin thing, so I think it belongs
equally well here.

Peter

--
Peter J. Acklam - [EMAIL PROTECTED] - http://home.online.no/~pjacklam



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Perl CPAN module help

2003-11-17 Thread Gary Nielson
Thank you so much. If I wanted to start fresh with a new perl
installation -- replacing the executables and all the modules -- how do you
recommend I do this under cygwin. I hadn't installed too many modules and it
would be nicer to start clean and set it up to use /usr/local right from the
start for everything. I really like setup.exe to install things, it is
sweet.

Thanks again!

-Original Message-
From: Peter J. Acklam [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 5:13 AM
To: Gary Nielson
Cc: Peter J. Acklam; [EMAIL PROTECTED]
Subject: Re: Perl CPAN module help


Gary Nielson [EMAIL PROTECTED] wrote:

 Thank you for your help. I understand what you are saying
 here. I will try installing under /usr/local.

I forgot to mention that Perl will not, by default, search for
modules in /usr/local.  This is a disadvantage, but it's worth it,
in my opinion.  The simplest way to make Perl look for modules
there is to add

   PERL5LIB=/usr/local/lib/perl5:/usr/local/lib/perl5/site_perl

to your personal startup file (~/.bash_profile or whatever).

 My question, though, is what do I do about all the modules I've
 installed under /usr?  How do I deal with them?  Do I need to
 re-install them under /usr/local? Do I then need to somehow
 remove them from /usr? Or can I have modules under both
 directories, leaving the ones that work under /usr and place new
 ones under /usr/local?

If they're working properly, you might as well leave them alone.
If they're broken, re-install them with PREFIX=/usr/local.

Note that perl will search the directories specified in PERL5LIB
before the other directories, so if you have a working module
under /usr/local and a broken one under /usr, then the working one
under /usr/local will be used.  The default search path:

$ unset PERL5LIB
$ perl -wle 'print for @INC'
/usr/lib/perl5/5.8.0/cygwin-multi-64int
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.

Now, note how /usr/local/... comes first:

$ export PERL5LIB=/usr/local/lib/perl5:/usr/local/lib/perl5/site_perl
$ perl -wle 'print for @INC'
/usr/local/lib/perl5/5.8.0/cygwin-multi-64int
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
/usr/lib/perl5/5.8.0/cygwin-multi-64int
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.

You may try to remove modules under /usr, but be careful so you
don't remove things you need.  If you really want to remove them,
I'd rather do that by uninstalling Perl, removing everything under
/usr/lib/perl5 and start over with a clean Perl installation.

Peter

--
Peter J. Acklam - [EMAIL PROTECTED] - http://home.online.no/~pjacklam



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Perl CPAN module help

2003-11-16 Thread Gary Nielson
Hi,

I am getting somewhere. I used setup and installed needed executables such
as gcc. Did a force install in cpan for LWP modules and it seemed to be go
great. All tests were successful in make test. But when running make install
I got the error:

Cannot forceunlink /usr/bin/HEAD: No such file or directory at
/usr/lib/perl5/5.8.0/File/Find.pm line 873.
make: *** [pure_site_install] Error 255
/usr/bin/make install -- NOT OK.

The Find.pm line in question is: { $wanted_callback-() }; # protect against
wild next

Any idea what is going wrong, or is the question better posed to a perl
forum? Any help appreciated.


-Original Message-
From: Peter J. Acklam [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 2:52 AM
To: Gary Nielson; [EMAIL PROTECTED]
Subject: RE: Perl CPAN module help


Gary Nielson [EMAIL PROTECTED] wrote:

I tried installing several perl modules today, but make test
failed on several in the LWP package and for HTML::Parser
etc. Couldn't find modules I'd already installed in the INC
path.

That's strange.  Which module is not found?  Since you have
installed it, where is it?  What is your @INC?  You can see your
@INC with

   perl -wle 'print for @INC'

With HTML::Parser it couldn't run gcc because it was not found.

Then you must install it.  :-)  Run setup.exe and install gcc.

How do you use CPAN under cygwin?

   perldoc cpan

To fire up the cpan shell, just type, at the cygwin shell

   cpan

Is there a web page that outlines how to configure CPAN for
cygwin, is that what is needed?

I found it to be quite straight forward.  Please be specific and
tell where you run into problems.

Are others having problems and how did you fix them.

We'll take one thing at a time.  I've used the cpan shell a lot,
but I need some more information about where you run into
problems.

I successfully install some and have force installed others and
notice that if you do a perldoc perllocal you only get the first
three modules listed, whereas if you do a more on the perllocal
file, you see a lot more listed. What's up with that, can anyonw
explain?

I have never used perldoc perllocal to see what modules I have
installed, so at this point I can't tell you what is wrong.

Peter

--
Peter J. Acklam - [EMAIL PROTECTED] - http://home.online.no/~pjacklam



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Configuring mail for cygwin

2003-10-30 Thread Gary Nielson
I realize my problem but don't know how to get around it. I am running an
smtp server using Mercury Mail under Windows XP because I run mail directly
to my domain through dynip.com and read it in Outlook. Whenever I disable
Mercury, I can download mail no problem in cygwin. When Mercury Mail runs, I
can not. Should I use another port for smtp in cygwin? If so, how can I do
that? If not, how should I approach this? Any help much appreciated.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Lou Losee
Sent: Wednesday, October 29, 2003 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Configuring mail for cygwin


* Gary Nielson [EMAIL PROTECTED] [2003-10-29 19:15]:
 Hi,

 I am running Windows XP and recently loaded cygwin. I am looking for an
easy
 way to download mail from my ISP account so that I can read my mail in
pine.
 How can I do this? Can someone point me to information on how to set this
 up? Any help appreciated. Thanks.

Take a look at fetchmail.

Lou

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Configuring mail for cygwin

2003-10-29 Thread Gary Nielson
Hi,

I am running Windows XP and recently loaded cygwin. I am looking for an easy
way to download mail from my ISP account so that I can read my mail in pine.
How can I do this? Can someone point me to information on how to set this
up? Any help appreciated. Thanks.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Getting fetchmail to work with smtp when mail server already running in XP

2003-08-31 Thread Gary Nielson
Hi,

I've installed cygwin on Windows XP and love it. I am trying to get
fetchmail to work with smtp. I am running my own smtp server in XP (Mercury)
as I have my own dynamic IP from dynip.com. I am using Outlook to send and
receive mail for my domain. I also am trying to download pop mail from
another account into cygwin so I can do some stuff with it with procmail and
perl. Fetchmail does download the mail, but to where, I have no idea,
because it doesn't show up as far as I can tell. I know I can set up some
smtp capabilities in cygwin, but that would collide with the mail server I
am running in XP. Have I worked myself into a corner? Anyone have any ideas?

The fetchmail manpage says:

 As  each  message is retrieved fetchmail normally delivers
   it via SMTP to port 25 on the machine  it  is  running  on
   (localhost), just as though it were being passed in over a
   normal TCP/IP link.   The  mail  will  then  be  delivered
   locally  via  your system's MDA (Mail Delivery Agent, usu-
   ally sendmail(8) but your system may use a  different  one
   such  as  smail, mmdf, exim, or qmail).  All the delivery-
   control  mechanisms  (such  as  .forward  files)  normally
   available  through  your  system  MDA  and  local delivery
   agents will therefore work.

   If no port 25 listener is available,  but  your  fetchmail
   compilation  detected  or  was told about a reliable local
   MDA, it will use that MDA for local delivery instead.





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/