Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by Amphiaraus (Beadle)
on Mar 07, 2017 at 21:10 UTC ( [id://1183886]=note: print w/replies, xml ) Need Help??


in reply to "cpan force install" can't connect to sourceforge.net

My laptop has no compiler that would seem to block me from using GitHub Releases. Is there a way I can download Alien::wxWidgets such that in my Perl scripts

use Alien::wxWidgets;

Would work?
  • Comment on Re: "cpan force install" can't connect to sourceforge.net

Replies are listed 'Best First'.
Re^2: "cpan force install" can't connect to sourceforge.net
by Anonymous Monk on Mar 07, 2017 at 23:45 UTC

    Yeah, read the README/INSTALL file and follow the instructions

      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?

        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

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

        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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found