in reply to installing Inline.pm on XP pro

Hi, That output you've supplied is what you get when you're using ActivePerl. With Strawberry Perl, you shouldn't have that problem.

The problem is that gcc builds test_inline1_pl_33e8.o, but perl tells g++ to go looking for test_inline1_pl_33e8.obj which, of course, can't be found.

To fix, open up perl/lib/Config.pm, locate the line obj_ext => '.obj', and remove it (or comment it out). It shouldn't be there.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: installing Inline.pm on XP pro
by perler (Initiate) on Jun 18, 2007 at 07:37 UTC
    Thanks for replying Rob! And you are even right!!!
    But then I got this error:
    dmake: Error: -- Configuration file `C:\Perl\site\bin\startup\startup.mk' not f ound

    Even though I got this path in my "PATH" enviroment variable:
    C:\vanilla-perl\dmake\bin\startup

    So I did something ugly, I copied the vanilla-perl startup dir to the C:\Perl\site\bin\ path

    Then my test script worked,puha!
    But isn't there a nicer way to do this?
    It seems that Perl is not checking the right path eventhough its in the enviroment variable.
    I mean there must be a way you can make perl look in the right spot.
    (Its okay if you dont reply. it would just be nice to know.)

    PS. Wow! Running "inline.pm" after a few hours on PerlMonks. I think I'll stick around for a bit :-)
    Thanks again.
      dmake: Error: -- Configuration file `C:\Perl\site\bin\startup\startup.mk' not f ound

      Looks like someone has put a copy of dmake.exe into C:\Perl\site\bin. I would delete it from there and also delete the startup folder you placed in Perl\site\bin. Having removed them, add C:\vanilla-perl\dmake\bin to your path environment variable, and all should be fine.

      There's no reason you can't have dmake and the startup folder in C:\Perl\site\bin - except for the ugliness factor (as you noted). And you already have a perfectly functional dmake set up in vanilla perl - so better to simply use it (by amending the path) instead of creating an unnecessary duplicate of dmake and its startup folder.

      Cheers,
      Rob
      Update: Come to think of it, C:\vanilla-perl\dmake\bin is probably already in the path - in which case simply deleting the copy of dmake.exe that was in C:\Perl\site\bin would have been sufficient.
        Right again!
        I just may have placed a copy of dmake in that dir yesterday in mindless frustration.
        Thanks!