Ticket #98 (closed issue: fixed)

Opened 1 year ago

Last modified 1 year ago

Perl Dependencies Failing to install - Cygwin

Reported by: mbridges Assigned to: kindlund
Priority: normal Milestone: 0.9
Component: Installation Version: none
Severity: none Keywords: cygwin, dependencies, perl, bundle
Cc:

Description

Whenever I try to install Bundle::CPAN through cpan, I can not install it. It always errors out with

Failed during this command:
 KWILLIAMS/PathTools-3.25.tar.gz              : make NO
 GBARR/Scalar-List-Utils-1.19.tar.gz          : make NO
 PMQS/Compress-Raw-Zlib-2.006.tar.gz          : make NO
 PMQS/Compress-Raw-Bzip2-2.006.tar.gz         : make NO
 PMQS/IO-Compress-Bzip2-2.006.tar.gz          : make_test NO
 PMQS/IO-Compress-Zlib-2.006.tar.gz           : make_test NO
 PMQS/Compress-Zlib-2.007.tar.gz              : make_test NO

I have tried installing these modules manually and they still fail, also when trying to install the dependencies for HoneyClient-Agent. I can not install Term::ProgressBar, Filesys::CygwinPaths, or Data::Structure::Util.

Thanks for help in advance.

Attachments

Change History

09/23/07 13:43:50 changed by kindlund

  • owner changed from flindiakos to kindlund.
  • status changed from new to assigned.
  • milestone set to 0.9.

Hi,

In many cases, CPAN may not be able to automatically install the modules properly. This could be due to the installation code unable to delete (unlink) the old modules/libraries in order for the installation to succeed.

Consider this: the CPAN process loads and attempts to upgrade a critical library that it currently uses as the process is loaded. On Windows, once the CPAN process obtains a lock on a .DLL, then that file cannot be deleted until the process is terminated.

In fact, this is actually the case when you're trying to upgrade: "PMQS/Compress-Raw-Zlib-2.006.tar.gz". The follow message appears:

I see you are running Cygwin.

Please note that this module cannot be installed on Cygwin using the CPAN
shell. The CPAN Shell uses Compress::Raw::Zlib internally and it is not
possible to delete an active DLL.

If you are running the CPAN shell, please exit it and install this module
by hand by running 'make install' under the directory

    ~/.cpan/build/Compress-Raw-Zlib-VERSION

Do you want to continue? [Y/N]: N

For these libraries, you have to exit out of CPAN, go to your ~/.cpan/build directory, and manually build, make, make test, and make install these libraries. These can be accomplished by doing:

cd ~/.cpan/build/PATH/TO/MODULE
perl Makefile.PL
make
make test
make install

By doing these operations manually, you can identify at what point the CPAN automated installation process failed. If you have performed this type of manual installation process already and they still fail, then I would need more information about each specific attempt, in order to help you any further.

Regards,

— Darien

09/23/07 14:52:33 changed by mbridges

Here are some of them…these seems to be a repeat of -Wdeclaration-after-statement

Administrator@client ~/.cpan/build/PathTools-3.25-nibOp3
$ make
gcc -c   -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -Wdeclaration-after-s
tatement -DUSEIMPORTLIB -O3   -DVERSION=\"3.25\" -DXS_VERSION=\"3.25\"  "-I/usr/
lib/perl5/5.8/cygwin/CORE"   Cwd.c
cc1: error: unrecognized option `-Wdeclaration-after-statement'
make: *** [Cwd.o] Error 1
Administrator@client ~/.cpan/build/Clone-0.27-jii8md
$ make
gcc -c   -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -Wdeclaration-after-s
tatement -DUSEIMPORTLIB -O3   -DVERSION=\"0.27\" -DXS_VERSION=\"0.27\"  "-I/usr/
lib/perl5/5.8/cygwin/CORE"   Clone.c
cc1: error: unrecognized option `-Wdeclaration-after-statement'
make: *** [Clone.o] Error 1
Administrator@client ~/.cpan/build/Compress-Raw-Zlib-2.006-eIM3Gd
$ make
gcc -c  -I./zlib-src -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -Wdeclara
tion-after-statement -DUSEIMPORTLIB -O3   -DVERSION=\"2.006\" -DXS_VERSION=\"2.0
06\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"  -DGZIP_OS_CODE=3 -DUSE_PPPORT_H Zlib.c

cc1: error: unrecognized option `-Wdeclaration-after-statement'
make: *** [Zlib.o] Error 1

09/23/07 20:35:39 changed by kindlund

It looks like your issue is specific to your Cygwin environment. Specifically, it appears your version of GCC has issues with those directives. After doing some googling, it looks like others have had similar issues; see here:

http://www.issociate.de/board/post/447071/error_installing_HTML:Parser.html http://lists.roaringpenguin.com/pipermail/mimedefang/2007-July/033094.html http://www.nntp.perl.org/group/perl.dbi.users/2007/06/msg31592.html

As such, here's a possible solution:

Edit the Makefile manually and remove the part
where -Wdeclaration-after-statement is in CCFLAGS.

… once you edit the Makefile, then try to run "make".

Regards,

— Darien

09/26/07 01:41:46 changed by mbridges

  • status changed from assigned to closed.
  • resolution set to fixed.

Okay that worked; however, inorder to get the Data::Structure::Util dependency I had to update to a newer version of gcc.

Thanks.


Add/Change #98 (Perl Dependencies Failing to install - Cygwin)




Change Properties
Action