Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: "cpan force install" can't connect to sourceforge.net

by Amphiaraus (Beadle)
on Mar 09, 2017 at 13:40 UTC ( [id://1184033]=note: print w/replies, xml ) Need Help??


in reply to Re^2: "cpan force install" can't connect to sourceforge.net
in thread "cpan force install" can't connect to sourceforge.net

Apparently a change has been made in the sourceforge.net site, in my latest "cpan force install Alien::wxWidgets" there was no error complaining that sourceforge.net could not be reached. Alien-wxWidgets-0.67.tar.gz downloaded successfully.

I now have an error message saying Alien::wxWidgets cannot be compiled:

Running Build for M/MD/MDOOTSON/Alien- wxWidgets-0.67.tar.gz
Building Alien-wxWidgets
gmake: makefile.gcc: No such file or directory
gmake: *** No rule to make target 'makefile.gcc'. Stop.
Could not find wxWidgets lib directory at inc/My/Build/Win32_MinGW_Bakefile.pm line 68.
MDOOTSON/Alien-wxWidgets-0.67.tar.gz
C:\Strawberry\perl\bin\perl.exe ./Build -- NOT OK
Stopping: 'install' failed for 'Alien::wxWidgets'.


Internet searches suggest "gmake" is a UNIX-like makefile distributed by the GNU Project. My computer uses Windows, not UNIX. Is there a solution for the "gmake: makefile.gcc" error shown above that does not require your computer to have UNIX?
  • Comment on Re^3: "cpan force install" can't connect to sourceforge.net

Replies are listed 'Best First'.
Re^4: "cpan force install" can't connect to sourceforge.net
by marto (Cardinal) on Mar 09, 2017 at 15:05 UTC

    On Windows 7 64 bit, Strawberry Perl v5.24.1 I used cpanm to install this without issue:

    cpanm Alien::wxWidgets

    The download from SF seemed to take quite a while, after this everything burst into life, on an I5 laptop it took long time to build and test everything, but:

    1 distribution installed
Re^4: "cpan force install" can't connect to sourceforge.net
by Anonymous Monk on Mar 10, 2017 at 08:06 UTC

    ... in my latest "cpan force install Alien::wxWidgets" ... I now have an error message saying Alien::wxWidgets cannot be compiled:

    Force means go ahead and install even if ... testing ... fails

    But if there is a problem building/cc++compiling a distribution, then there is no module to be installed , as it hasn't been built/compiled yet, so nothing that can be force installed

    If you want to build this module you need to step outside of cpan (  cpan[2]> notest install HTTP::Proxy ) and run these commands yourself

    perl Build.PL perl Build perl Build test perl Build install

    Then you'll have an idea of where the problem lies and can go about solving it -- when automatic doesn't work you gotta go step by step

    wxWidgets has over 5000 files, and a couple of hundred makefile.gcc files ...

    If Alien-wxWidgets/Build.PL can't download the source ...

    http://search.cpan.org/dist/Alien-wxWidgets/README.txt

      Bah typos

      step outside of cpan is use look command in cpan shell / interactive cpan, looks like

      cpan[2]> look Alien::wxWidgets

      I'm glad to see OP has solved this issue

Re^4: "cpan force install" can't connect to sourceforge.net
by Amphiaraus (Beadle) on Mar 09, 2017 at 17:46 UTC
    I have a 32-bit computer and a 32-bit version of Strawberry Perl
    I have read that the 64-bit Strawberry Perl includes the "gcc" compiler but the 32-bit Strawberry Perl doesn't include "gcc".
    Is there a CPAN Perl Module that could add the "gcc" compiler to my 32-bit Strawberry Perl?

    My error message when using cpanm Alien::wxWidgets:

    Building Alien-wxWidgets
    gmake: makefile.gcc: No such file or directory
    gmake: *** No rule to make target 'makefile.gcc'. Stop
      I have read that the 64-bit Strawberry Perl includes the "gcc" compiler but the 32-bit Strawberry Perl doesn't include "gcc".

      I don't know where you read that, but it's verifiably false: I just downloaded http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip, and on inspecting the contents of the zip file, I see the gcc compiler zip:\c\bin\gcc.exe and related files.

      I've also never seen any of my strawberry installations try to use gmake instead of the dmake that comes with strawberry. Did you change the configuration of cpanm?

      I haven't installed the 5.24.1.1-32, but my 5.24.0.1-32 installation doesn't seem to complain about gmake or makefile.gcc. You might have something getting in the way of your path to the gcc compiler or dmake or something. From a cmd.exe window, run

      perl -v where perl where gcc
      To make sure that your path is right, you might want to prefix your PATH with the location where your strawberry perl was installed, for the ...\c\bin;...\perl\bin;...\perl\site\bin; directories. For example, I ran:
      C:\Users\pryrt\Documents>path c:\usr\local\apps\berrybrew\perls\5.24.0 +_32\c\bin;c:\usr\local\apps\berrybrew\perls\5.24.0_32\perl\bin;c:\usr +\local\apps\berrybrew\perls\5.24.0_ 32\perl\site\bin;%PATH% C:\Users\pryrt\Documents>perl -v This is perl 5, version 24, subversion 0 (v5.24.0) built for MSWin32-x +86-multi-thread-64int ... C:\Users\pryrt\Documents>where perl c:\usr\local\apps\berrybrew\perls\5.24.0_32\perl\bin\perl.exe C:\usr\local\apps\strawberry\perl\bin\perl.exe C:\Users\pryrt\Documents>where gcc c:\usr\local\apps\berrybrew\perls\5.24.0_32\c\bin\gcc.exe C:\usr\local\apps\strawberry\c\bin\gcc.exe

      With that, when I run cpanm Alien::wxWidgets, I get

      C:\usr\local>cpanm Alien::wxWidgets WARNING: Module::Signature and Digest::SHA is required for distributio +n verifications. --> Working on Alien::wxWidgets Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Alien-wxWidgets- +0.67.tar.gz ... OK Configuring Alien-wxWidgets-0.67 ... OK Building and testing Alien-wxWidgets-0.67 ...

      I was able to write this whole post in the time it takes to build and test, and am having to wait before posting, but I haven't seen the gmake errors you mentioned in the first 5 minutes -- after another 5 minutes, still going... but looking at %HOME%\.cpanm\work\...\build.log, I see the log updating, and there have been hundreds of lines of successful instances of gcc and g++. If it had a "gmake" problem, I would think it would have shown up before doing any compiling. Thus, I will assume it won't, and create my post. If I'm wrong, I will edit my post.

      To reiterate, I think you have a PATH issue, or have a faulty installation of strawberry.


      update: 15 min later:

      C:\usr\local>cpanm Alien::wxWidgets WARNING: Module::Signature and Digest::SHA is required for distributio +n verifications. --> Working on Alien::wxWidgets Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Alien-wxWidgets- +0.67.tar.gz ... OK Configuring Alien-wxWidgets-0.67 ... OK Building and testing Alien-wxWidgets-0.67 ... OK Successfully installed Alien-wxWidgets-0.67 1 distribution installed

      You also might want to check for

      where dmake where cpanm
      and make sure those and the where's above are all pointing to the same hierarchy


      update Mar 10: I learned (was reminded?) today that strawberry comes with both dmake and gmake, so I will strike my comments about never seeing strawberry use gmake... I had just not noticed (or remembered?) that I'd seen it. :-)

      Strawberry has always shipped with gcc, associated build tools, non core modules and libraries. The point is to provide a complete development environment on Windows. This sounds more like an installation or configuration problems.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found