Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Inline:CPP module won't install

by Anonymous Monk
on Apr 05, 2010 at 18:52 UTC ( [id://832882]=note: print w/replies, xml ) Need Help??


in reply to Inline:CPP module won't install

I have no issues when using g++,
$ cpanp i Inline::CPP Installing Inline::CPP (0.25) Running [C:\perl\5.10.1\bin\MSWin32-x86-multi-thread\perl.exe C:\perl\ +5.10.1\bin\cpanp-run-perl *snip*\CPANPL~1\510~1.1\build\Inline-CPP-0. +25\Makefile.PL]... This will configure and build Inline::C++. What default C++ compiler would you like to use? [g++] What default libraries would you like to include? [-lstdc++] Checking if your kit is complete... Looks good Writing Makefile for Inline::CPP::grammar Writing Makefile for Inline::CPP Running [C:\perl\dmake-4.12-20090907-SHAY\dmake\dmake.EXE test]... C:\perl\5.10.1\bin\MSWin32-x86-multi-thread\perl.exe "-MExtUtils::Comm +and::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/01basic.t ... ok t/02prefix.t .. ok All tests successful. Files=2, Tests=14, 19 wallclock secs ( 0.08 usr + 0.03 sys = 0.11 CP +U) Result: PASS C:\perl\5.10.1\bin\MSWin32-x86-multi-thread\perl.exe "-MExtUtils::Comm +and::MM" "-e" "test_harness(0, '..\blib\lib', '..\blib\arch')" t/*.t t/01nherit.t .. ok t/02scope.t ... ok t/03inline.t .. ok t/04const.t ... ok t/05virt.t .... ok t/06deflt.t ... ok t/07static.t .. ok t/08anon.t .... ok t/09purevt.t .. ok t/10struct.t .. ok t/11minhrt.t .. ok t/12retlst.t .. ok t/13vararg.t .. ok t/14const.t ... ok t/15stvar.t ... ok t/16varlst.t .. ok All tests successful. Files=16, Tests=34, 98 wallclock secs ( 0.09 usr + 0.02 sys = 0.11 C +PU) Result: PASS
You could try Bug #45168 for Inline-CPP: The Makefile.PL does not properly set the library path on a mac. A patch is attached. Bug #42552 for Inline-CPP: All tests fail on recent debian/g++ versions. "iostream.h" not found problem.

Replies are listed 'Best First'.
Re^2: Inline:CPP module won't install
by Steve_BZ (Chaplain) on Apr 06, 2010 at 01:38 UTC

    Hi Anon, this looks exactly like what I'm looking for. But it's way over my pay-grade.

    update

    When it says "Setting STD_IOSTREAM to a true value helps, and all tests pass nicely.", what is STD_IOSTREAM? Is it an environment variable (I'm doing this on windows, so is it system or user)? And what does 'true' value mean? It could be "1" or does it mean a path to iostream.h which exists?

    I tried setting the system environment variable STD_IOSTREAM to '1' and running with compiler g++, but the results are the same. So I feel I must have misunderstood the patch process.

    OK, well I finally understood what the patch was saying. I edited the CPP.pm files and Makefile.PL manually (is there an automatic way of doing it?) the 'Makefile.PL' runs smoothly as does 'nmake'. But 'nmake test' gives:

    Thanks for all your efforts.

    Regards

    Steve

      You're using gcc-3.4.5, so there should be no need to install the STD_IOSTREAM patch. One thing I would recommend is that you use 'dmake' (available from CPAN or, I think, as 'ppm install dmake'). That will at least remove that crappy old version of nmake you're using from the mix of things that could cause problems, though I doubt it's the problem here.

      With 'dmake' installed, check that perl -V:make reports 'dmake'. (You may need to remove 'nmake.exe' from your path for that to happen.)

      Then, in a freshly unpacked Inline-CPP-0.25 source folder, run 'perl Makefile.PL', accepting the prompts to use 'g++' and '-lstdc++'. Then run 'dmake test' and it should work ok.

      It's not a good idea to have mingw in the msys tree .... I think that can cause problems with msys, though it shouldn't be a problem here. The simplest way to get both 'dmake' and 'mingw' for ActivePerl is to run 'ppm install MinGW' - doesn't require any path alterations or other fiddling about.

      Let us know what, if any, errors arise - also the version of Parse::RecDescent that you installed.

      Cheers,
      Rob
        It's not a good idea to have mingw in the msys tree .... I think that can cause problems with msys, though it shouldn't be a problem here.

        Maybe you should mention that to the MinGW folks, because thats how they have it arranged by default.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://832882]
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: (2)
As of 2024-04-19 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found