Re: Perl CPAN module help

2003-11-19 Thread Peter J. Acklam
Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote:

 Maybe my memory is going, but I thought the reason you suggested
 he switch to /usr/local was so that he wouldn't have the
 HEAD/head.exe conflict and it would go ahead and successfully
 install /usr/local/bin/HEAD.

Well, yes, but many people, including me, have /usr/local/bin
before /usr/bin in their PATH, so when calling head, it's the
/usr/local/bin/HEAD that is chosen.  I should have mentioned this
specifically since it's not an issue if you have /usr/bin before
/usr/local/bin in your path.

Is there a way to make path searches case insensitive?

On the other hand, if you have /usr/bin before /usr/local/bin
you'll not get the latest versions when Perl scripts, like cpan,
are updated.

 Rather than specify PREFIX for every module build and set a
 PERL5LIB, you might just build your own perl with the
 -Uusrbinperl configure option, so it defaults to /usr/local/.
 (There are just a few non-core modules included in the cygwin
 distribution that you would probably want to start by building:
 Archive::Tar, Compress::Zlib, Term::ReadKey, MD5, Net::Telnet,
 Term::ReadLine::Perl.)

True, but I'm not sure whether someone who has problems installing
CPAN modules is yet capable of building a new version of Perl.

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-18 Thread Peter J. Acklam
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-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-18 Thread Yitzchak Scott-Thoennes
On Tue, Nov 18, 2003 at 04:29:18PM +0100, Peter J. Acklam [EMAIL PROTECTED] wrote:
 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.

3 separate points:

Maybe my memory is going, but I thought the reason you suggested he
switch to /usr/local was so that he wouldn't have the HEAD/head.exe
conflict and it would go ahead and successfully install
/usr/local/bin/HEAD.

Rather than specify PREFIX for every module build and set a PERL5LIB,
you might just build your own perl with the -Uusrbinperl configure
option, so it defaults to /usr/local/.  (There are just a few non-core
modules included in the cygwin distribution that you would probably
want to start by building: Archive::Tar, Compress::Zlib,
Term::ReadKey, MD5, Net::Telnet, Term::ReadLine::Perl.)

Gerrit, if you are listening, perl does a nice job of separating
user-installed modules out into a site_perl subdirectory with the
exception of scripts and man pages.  Would it make sense to configure
the cygwin distribution with:
-Dsitebin=/usr/local/bin
-Dsiteman1=/usr/local/share/man/man1
-Dsiteman3=/usr/local/share/man/man3 ??

--
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 Peter J. Acklam
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-17 Thread Patrick Eisenacher
Hi,

I just read what Peter said about 'install' and 'force install'. I had 
to use 'force install' as well for installing the BerkeleyDB module, as 
9 out of 20 tests were failing. So far it is running fine, but I haven't 
done any heavy usage tests yet, just some simple storages and 
retrievals. I'm using Perl v5.8.0-3, BerkeleyDB v0.25 and db3.1 
v3.1.17-2, but saw this behaviour ever since I started with BerkeleyDB 
v0.21.

I'm wondering whether anybody else is seeing this behaviour and managed 
to do a plain install. I've attached the output I get from 'test 
BerkeleyDB' below.

I also do get warnings when doing a normal install for other modules 
that they are not allowed to install into 
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/, so they install into 
/usr/lib/perl5/site_perl/5.8.0/. Checking the ACL for above directory yields

$ getfacl /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/
# file: /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/
# owner: eisenacher
# group: Benutzer
user::---
group::---
group:Administratoren:rwx
mask:rwx
other:r-x
default:group:Administratoren:rwx
default:mask:rwx
default:other:r-x
And checking my /etc/passwd shows:

$ cat /etc/passwd
SYSTEM:*:18:544:,S-1-5-18::
Administratoren:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-PC-EISENACHER\Administrator,S-1-5-21-44
8539723-1606980848-1708537768-500:/home/Administrator:/bin/bash
Gast:unused_by_nt/2000/xp:501:513:U-PC-EISENACHER\Gast,S-1-5-21-448539723-1606980848
-1708537768-501:/home/Gast:/bin/bash
eisenacher:unused_by_nt/2000/xp:1000:513:Patrick 
Eisenacher,U-PC-EISENACHER\eisenacher,S-1-5-21-448539723-1606980848-1708537768-1000:/home/eisenacher:/bin/bash
VUSR_PC-EISENACHER:unused_by_nt/2000/xp:1001:513:VSA Server 
Account,U-PC-EISENACHER\VUSR_PC-EISENACHER,S-1-5-21-448539723-1606980848-1708537768-1001:/home/VUSR_PC-EISENACHER:/bin/bash

and /etc/group:
$ cat '/etc/group'
SYSTEM:S-1-5-18:18:
Kein:S-1-5-21-448539723-1606980848-1708537768-513:513:
Administratoren:S-1-5-32-544:544:
Benutzer:S-1-5-32-545:545:
Gäste:S-1-5-32-546:546:
Hauptbenutzer:S-1-5-32-547:547:
Replikations-Operator:S-1-5-32-552:552:
Sicherungs-Operatoren:S-1-5-32-551:551:
Which is weird in 2 ways. First I don't belong to any group, but the 
owning group is 'Benutzer' and perl sets up the directory in a way that 
only members of the group 'Administratoren' can write into it. Clearly, 
there are no members of any of those groups.

Anybody any tips?

Thanks in advance,
Patrick
Running make test
/usr/bin/perl.exe -MExtUtils::Command::MM -e test_harness(0, 
'blib/lib', 'blib/arch') t/*.t
t/btreeok 177/244Can't call method txn_begin on an undefined 
value at t/btree.t line 638.
t/btreedubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 28, 178-244
Failed 68/244 tests, 72.13% okay
t/db-3.0...ok 1/14Can't call method set_mutexlocks on an undefined 
value at t/db-3.0.t line 39.
t/db-3.0...dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-14
Failed 13/14 tests, 7.14% okay
t/db-3.1...ok
t/db-3.2...skipped
all skipped: this needs Berkeley DB 3.2.x or better
t/db-3.3...skipped
all skipped: this needs Berkeley DB 3.3.x or better
t/destroy..ok 1/15Can't call method txn_begin on an undefined 
value at t/destroy.t line 33.
t/destroy..dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-15
Failed 14/15 tests, 6.67% okay
t/encrypt..skipped
all skipped: this needs Berkeley DB 4.1.x or better
t/env..ok 18/50Can't call method txn_begin on an undefined 
value at t/env.t line 104.
t/env..dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 12, 14, 21-50
Failed 32/50 tests, 36.00% okay
t/examples.ok
t/examples3ok
t/filter...ok
t/hash.ok 146/212Can't call method txn_begin on an undefined 
value at t/hash.t line 444.
t/hash.dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 29, 147-212
Failed 67/212 tests, 68.40% okay
t/join.Can't call method txn_begin on an undefined value at 
t/join.t line 86.
t/join.dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 8-41
Failed 34/41 tests, 17.07% okay
t/mldbmok
t/queueskipped
all skipped: Queue needs Berkeley DB 3.3.x or better
t/recnook 166/226Can't call method txn_begin on an undefined 
value at t/recno.t line 471.
t/recnodubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 28, 168-226
Failed 60/226 tests, 73.45% okay
t/strict...NOK 2Use of uninitialized value in numeric eq (==) at 
t/strict.t line 40.
t/strict...NOK 8Can't call method txn_begin on an undefined value 
at t/str
t/strict...ok 9/44
t/strict...dubious
Test returned status 255 (wstat 

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: Perl CPAN module help

2003-11-16 Thread Brian Dessent
Gary Nielson wrote:
 
 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.

On unix, 'head' is the program that displays the first 'n' lines of a
file, whereas 'HEAD' is a utility that's installed from LWP to do the
HTTP HEAD command from the command line (there's also GET.)  In unix,
case is significant, so it's perfectly fine to have both HEAD and a head
commands, but under Windows and thus Cygwin, case doesn't matter.  So
you have to skip the HEAD utility from LWP, or temporarily remove/rename
the standard head command.

I don't think this error should be fatal, and there should be an option
or switch or something to prevent it from trying to install HEAD.

Brian

--
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 Peter J. Acklam
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-14 Thread Patrick Eisenacher
man CPAN has this to offer:

# list all modules on my disk that have newer versions on CPAN
for $mod (CPAN::Shell-expand(Module,/./)){
  next unless $mod-inst_file;
  next if $mod-uptodate;
  printf Module %s is installed as %s, could be updated to %s from C
PAN\n, $mod-id, $mod-inst_version, $mod-cpan_version;
}
which gives you a list of all installed modules, including the 
distribution ones.

HTH,
Patrick
Brian Dessent schrieb:
zzapper wrote:

Peter,


cpan
cpan

How do you list modules already installed?


There's no definitive way to do this.  If you just want to see if you
have the Foo::Bar module, you can use perl -MFoo::Bar -e 1 and if you
get an error then you need to install Foo::Bar.
You can also try the following script which uses the ExtUtils::Installed
module, but I have found that its output is sometimes misleading, in
that it will not display base (stock included) modules.  And I'm not
sure if it knows about modules that are installed through means other
than CPAN (e.g. through your distro's package manager.)
#!/usr/bin/perl

use ExtUtils::Installed;
my $instmod = ExtUtils::Installed-new();
foreach my $module ($instmod-modules()) {
my $version = $instmod-version($module) || ???;
   print $module -- $version\n;
}
Brian



--
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-14 Thread Patrick Eisenacher
or quick and dirty:

perl -e 'use CPAN; CPAN::Shell-r;'

HTH,
Patrick
Brian Dessent schrieb:

zzapper wrote:

Peter,


cpan
cpan

How do you list modules already installed?


There's no definitive way to do this.  If you just want to see if you
have the Foo::Bar module, you can use perl -MFoo::Bar -e 1 and if you
get an error then you need to install Foo::Bar.
You can also try the following script which uses the ExtUtils::Installed
module, but I have found that its output is sometimes misleading, in
that it will not display base (stock included) modules.  And I'm not
sure if it knows about modules that are installed through means other
than CPAN (e.g. through your distro's package manager.)
#!/usr/bin/perl

use ExtUtils::Installed;
my $instmod = ExtUtils::Installed-new();
foreach my $module ($instmod-modules()) {
my $version = $instmod-version($module) || ???;
   print $module -- $version\n;
}
Brian


--
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-14 Thread zzapper
Thanx,
What the doctor ordered!!

I took one of the suggested Perl Scripts and use thus:-

listmod.pl | grep -i pod

zzapper
--

vim -c :%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


--
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-14 Thread Peter J. Acklam
Doug VanLeuven [EMAIL PROTECTED] wrote:

#!/usr/bin/perl

use CPAN;
# list all modules on my disk and note the newer versions
for $mod (CPAN::Shell-expand(Module,/./)){
 next unless $mod-inst_file;
 # here only when installed
 if ($mod-inst_version eq undef) {
 printf %s :No VERSION\n, $mod-id;
 }
 elsif ($mod-uptodate){
 printf %s %s\n, $mod-id, $mod-inst_version
 }
 else {
 # here when not up to date
 printf %s %s, NEW VERSION=%s\n,
 $mod-id, $mod-inst_version, $mod-cpan_version;
 }

That will miss all modules that don't exist on CPAN.

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-14 Thread Peter J. Acklam
Patrick Eisenacher [EMAIL PROTECTED] wrote:

man CPAN has this to offer:

# list all modules on my disk that have newer versions on CPAN
for $mod (CPAN::Shell-expand(Module,/./)){
   next unless $mod-inst_file;
   next if $mod-uptodate;
   printf Module %s is installed as %s, could be updated to %s from C
PAN\n, $mod-id, $mod-inst_version, $mod-cpan_version;
}

which gives you a list of all installed modules, including the
distribution ones.

No, no!  It only lists modules for which there exists a newer
version on CPAN.

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-14 Thread Gerrit P. Haase
Hello Gary,

Wednesday, November 12, 2003, 7:57:42 PM, you 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. With HTML::Parser it couldn't run gcc
 because it was not found. How do you use CPAN under cygwin? Is there a web
 page that outlines how to configure CPAN for cygwin, is that what is needed?
 Are others having problems and how did you fix them. 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?

Just start the `cpan` script:
$ /usr/bin/cpan

It asks some questions to configure itself when it runs the first time.


-- 
Best regards,
 Gerrit 


--
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-14 Thread Christopher Faylor
On Fri, Nov 14, 2003 at 04:25:01PM +0100, Gerrit P. Haase wrote:
Hello Gary,

Wednesday, November 12, 2003, 7:57:42 PM, you 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. With HTML::Parser it couldn't run gcc
 because it was not found. How do you use CPAN under cygwin? Is there a web
 page that outlines how to configure CPAN for cygwin, is that what is needed?
 Are others having problems and how did you fix them. 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?

Just start the `cpan` script:
$ /usr/bin/cpan

It asks some questions to configure itself when it runs the first time.

Is there a cygwin question or observation somewhere?  It seems like we've
wandered into territory which would be best served in a forum devoted
strictly to perl.

cgf

--
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-13 Thread Peter J. Acklam
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: Perl CPAN module help

2003-11-13 Thread zzapper

Peter,

cpan
cpan

How do you list modules already installed?

zzapper
--

vim -c :%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


--
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-13 Thread Brian Dessent
zzapper wrote:
 
 Peter,
 
 cpan
 cpan
 
 How do you list modules already installed?

There's no definitive way to do this.  If you just want to see if you
have the Foo::Bar module, you can use perl -MFoo::Bar -e 1 and if you
get an error then you need to install Foo::Bar.

You can also try the following script which uses the ExtUtils::Installed
module, but I have found that its output is sometimes misleading, in
that it will not display base (stock included) modules.  And I'm not
sure if it knows about modules that are installed through means other
than CPAN (e.g. through your distro's package manager.)

#!/usr/bin/perl

use ExtUtils::Installed;
my $instmod = ExtUtils::Installed-new();
foreach my $module ($instmod-modules()) {
my $version = $instmod-version($module) || ???;
   print $module -- $version\n;
}

Brian

--
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-13 Thread Doug VanLeuven
Brian Dessent wrote:

How do you list modules already installed?


There's no definitive way to do this.  If you just want to see if you
have the Foo::Bar module, you can use perl -MFoo::Bar -e 1 and if you
get an error then you need to install Foo::Bar.
You can also try the following script which uses the ExtUtils::Installed
module, but I have found that its output is sometimes misleading, in
that it will not display base (stock included) modules.  And I'm not
sure if it knows about modules that are installed through means other
than CPAN (e.g. through your distro's package manager.)
I've been doing something similar.
Really it's been so long now, I forget it's origins or much of anything
about the why or how of it other than it's a comprehensive listing
that lets me know what I have  the status of the versions.
#!/usr/bin/perl

use CPAN;
# list all modules on my disk and note the newer versions
for $mod (CPAN::Shell-expand(Module,/./)){
next unless $mod-inst_file;
# here only when installed
if ($mod-inst_version eq undef) {
printf %s :No VERSION\n, $mod-id;
}
elsif ($mod-uptodate){
printf %s %s\n, $mod-id, $mod-inst_version
}
else {
# here when not up to date
printf %s %s, NEW VERSION=%s\n,
$mod-id, $mod-inst_version, $mod-cpan_version;
}
}
Doug VanLeuven

--
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/