This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: (RESOLVED) Re: Installing Perl modules with "perl -MCPAN -e shell; " fails with "02packages.details.txt.gz does not contain a Line-Count header"
- From: "John Morrison" <john at morrison dot mine dot nu>
- To: cygwin at cygwin dot com
- Date: Tue, 1 Mar 2005 15:11:18 -0000 (GMT)
- Subject: Re: (RESOLVED) Re: Installing Perl modules with "perl -MCPAN -e shell; " fails with "02packages.details.txt.gz does not contain a Line-Count header"
- References: <0MKpV6-1D4XMu3JLa-0001jh@mxeu1.kundenserver.de> <421F1B6A.10707@gtt-technologies.de> <422219B7.9030800@familiehaase.de> <42230C6D.2050702@gtt-technologies.de> <58969.84.246.168.11.1109595947.squirrel@mail.morrison.mine.nu> <42239270.60205@familiehaase.de> <20050301131349.GA1216@efn.org> <Pine.GSO.4.61.0503010939200.10998@slinky.cs.nyu.edu>
- Reply-to: john at morrison dot mine dot nu
On Tue, March 1, 2005 2:47 pm, Igor Pechtchanski said:
> On Tue, 1 Mar 2005, Yitzchak Scott-Thoennes wrote:
>
>> If they want a different directory, it still doesn't hurt to force
>> ~/.cpan
>> to binmode (except in so far as it uses up the AIUI limited number of
>> mounts). I'd advocate putting it in a postinstall script.
>
> Yes, it does sometimes. There used a problem doing "rm" when a mount
> directory doesn't exist -- the root directory was erased. I don't have a
> spare system available to experiment with it now.
> I had this problem when I did "rm -rf ~/something", where "~/something"
> was mounted explicitly, but didn't exist. At a guess, if the mount point
> doesn't exist, the directory resolves to "/", and that's what is being
> erased.
I was thinking more like the perl installer add a .cpan to the skel folder
and a 'post user create' file (to be determined how it gets run ;) which
does the mount then removes itself.
Thing is, it wouldn't help with users which already exist *before* they
install perl. A different solution would be necessary for them. Possibly
a profile.d script?
Anyway, just thoughts :)
J.
--
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/