Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

installing modules with gcc

by dannoura (Pilgrim)
on Aug 09, 2004 at 22:36 UTC ( #381373=perlquestion: print w/ replies, xml ) Need Help??
dannoura has asked for the wisdom of the Perl Monks concerning the following question:

hi monks,

I'm trying to install the Prima IPA module on my machine (WinXP running perl 5.8.0). The docs say to unpack, type makefile and make. I eventually realized that make is actually meant to be nmake. I used that (both from inside the MinGW interface and the command window) but got the error listed in this thread. So I downloaded MinGW and installed it, as per the advice in the thread, but got the same error when I typed nmake. Using the nmake file that came with MinGW gives the error:

cl -c -nologo -Gf -W1 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ST +RICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL +_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -W1 -nologo -MD -Zi + -DNDEBUG -O1 -DHAVE_CONFIG_H=1 -IC:\home\src\1\Prima\include -IC:\ +home\src\1\Prima\include\generic -IC:\Perl\lib\CORE -Iinclude -Iinclu +de\generic IPA.c -FoIPA.obj mingw32-make.exe: cl: Command not found mingw32-make.exe: *** [IPA.obj] Error 127

Any ideas about how to install this module?

Update: I now get the error:

Can't read makefile ': Makefile IPA.cls'

I think this means I'm missing a number of .h files. The docs say:

If some of the required libraries or include files can not be found, INCPATH+=/some/include and LIBPATH+=/some/lib semantics should be used to tell Makefile.PL about these.

What's the INCPATH and LIBPATH, and why would adding to them find the missing files?

Comment on installing modules with gcc
Select or Download Code
Re: installing modules with gcc
by gex (Scribe) on Aug 09, 2004 at 23:19 UTC
    cl: Command not found

    The command 'cl' invokes the ms c/c++ compiler. Do you have it, and if so, have you set up the environment correctly?

      How do I set it up? Do I need to make a new environment variable? If so where should it point to?

Re: installing modules with gcc
by BUU (Prior) on Aug 10, 2004 at 02:24 UTC
    As he said above, cl refers to Microsofts compiler, VC++ and such. If you don't have such, modify the CC variable in the make file to accurately represent your compiler set up.
Re: installing modules with gcc
by dfaure (Chaplain) on Aug 10, 2004 at 10:32 UTC
    Any ideas about how to install this module?

    cl is the Microsoft Compiler (Visual C++), the one used to generate your Perl distribution (you may verify it with perl -V), also the one required to build and install non pure-perl modules from sources (using MingW to generate a module for a VC generated perl is far from trivial).

    Anyway, some binary distributions of Prima are available here. IMHO, you'd better pick the one synched with your perl and install it as documented:

    perl ms_install.pl

    ____
    HTH, Dominique
    My two favorites:
    If the only tool you have is a hammer, you will see every problem as a nail. --Abraham Maslow
    Bien faire, et le faire savoir...

Re: installing modules with gcc
by Joost (Canon) on Aug 10, 2004 at 12:38 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://381373]
Approved by Aristotle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-08-20 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (108 votes), past polls