Perl/CPAN Keeps failing [SOLVED]

Simon Matthews simon@bluepearlsoftware.com
Fri Feb 2 14:42:36 GMT 2024


Replying to my own email:

On 1/29/24 11:04, Simon Matthews wrote:
> I keep getting errors when trying to install Perl packages using CPAN.
> I can see some quite old discussions that appear to say that the
> problem is solved by mounting the .cpan directory in binmode, but the
> options in that solution given to the mount command are not accepted.
> I have deleted my .cpan directory and tried multiple times.
>
> Error:
>
> cpan[1]> install Verilog::Netlist
> Reading '/home/build/.cpan/sources/authors/01mailrc.txt.gz'
> ............................................................................DONE
>
> Reading '/home/build/.cpan/sources/modules/02packages.details.txt.gz'
> Warning: Your
> /home/build/.cpan/sources/modules/02packages.details.txt.gz does not
> contain a Line-Count header.
> Please check the validity of the index file by comparing it to more
> than one CPAN mirror. I'll continue but problems seem likely to
> happen.
> Warning: Your
> /home/build/.cpan/sources/modules/02packages.details.txt.gz does not
> contain a Last-Updated header.
> Please check the validity of the index file by comparing it to more
> than one CPAN mirror. I'll continue but problems seem likely to
> happen.
> .Could not split
> line["`\cOF_??????l???\\?G?k??4??\$????2Y`N??,??o???H%?Xr?q??\c\\\cT?e???vM]m??-^?????o?/?v???d?-\cO?8Ts?r~??VKkiZ?*F??\cS?;?.y!?<?\e.H??7?y?sJ-????v>?w?w?\c?\cM"]
> Could not split
> line["2\cS???;??i{j?/?????\cD???o7?&G??!o???d?dn??eZ???K?\cF?K?3?\cPmm\c^l?,?\cD\e(??\cBwQ?\c^\cM"]
> Could not split
> line["??\c\\D}?\@F?gY?\cDSg\cPn\cNG??\@?M}????8;??d??\cR???F?\\???:??\cYB?#?<\cR\cUD??'?\cE??P?Z??1wg+?6dg?\c]IBX?i?x8?Gz?\cM"]
> Could not split
> line["\c]???\cH?\e\cR7!b\c@??&???hu?+?7lc?\cR;?>\c_*?&??r??7??9????R???C\c]\cV\cR^?\cY\e?\cHm???\cRz+#??\cA]?\cO\c@\c@????ms?0\cP??J???osm????W^?h?\cK?\cM"]
> Giving up parsing your
> /home/build/.cpan/sources/modules/02packages.details.txt.gz, too many
> errorsReading '/home/build/.cpan/sources/authors/01mailrc.txt.gz'
> ............................................................................DONE
>
>
> Claimed solution here:
>
> https://cygwin.com/pipermail/cygwin/2005-February/129418.html
>
> but the mount no longer accepts  any of the options "-s", "-b" or "-u"
>
> Suggestions on how to deal with this?
>
>
>
The suggestion to mount the .cpan directory in binmode was the solution.
Previous descriptions of this referenced syntax for the mount command
which is no longer valid.

I created a directory c:\CPAN.

I then added the following to /etc/fstab:

c:/cpan /home/build/.cpan ntfs binary 0 0

and ran "mount -a". After this, I was able to successfully run cpan.

Blue Pearl Software, Inc. will collect and process information about you that may be subject to data protection laws. For more information about how we use and disclose your personal information, how we protect your information, our legal basis to use your information, your rights and who you can contact, please refer to the relevant sections of our Privacy note at www.bluepearlsoftware.com/privacypolicy.


More information about the Cygwin mailing list