SyN/AcK has asked for the wisdom of the Perl Monks concerning the following question:

Hello all, I'm in need of some help installing Inline.pm on my win32 machine. I have setup my environment variable to recognize my Visual Studio .NET C++ compiler, cl.exe. And I have ActiveState Perl 5.8 installed in C:\Perl. I tried to install as the module says, so 1)perl Makefile.pl 2)nmake 3)nmake test 4)nmake install But, step 3, the nmake test bombs out. It gets thru some of the configuration, but not all and then it bombs out. If anyone can help me, please I'm at the point of begging here... I'm not even sure how to show you what the errors are since its all in my command prompt. If you know anything about Inline.pm, please just post and I can tell you some of the rest. Thanks for any help you can give! Nate McFeters

Replies are listed 'Best First'.
Re: Installing Inline.pm on win32
by fredopalus (Friar) on Jul 13, 2003 at 23:04 UTC
    To get the error, you can pipe the output to a text file like so:
    C:\DIR> nmake test > error.txt
      Well, now I apparently finally got it to build. It needed a bunch of headers, .lib, .dll, and .obj files from Visual Studio. I had to copy them all into my C:\Perl\lib\CORE directory for it to work. But the problem is that when I run a simple example, like the sample greet one that is included,
      use diagnostics; use strict; use warnings; use Inline 'C'; greet('Ingy'); greet(42); __END__ __C__ void greet(char* name) { printf("Hello %s!\n", name); }
      So, I run it and I get the following error:
      C:\Documents and Settings\Nate\Desktop>perl -w crap.pl Couldn't find an appropriate DIRECTORY for Inline to use. at C:/Perl/lib/FindBin.pm line 0 INIT failed--call queue aborted, <DATA> line 1 <#1> <F> An untrapped exception was raised while executing a CHECK, INIT, o +r routines has been prematurely ended. Uncaught exception from user code: Couldn't find an appropriate DIRECTORY for Inline to use. at C:/Perl/lib/FindBin.pm line 0 INIT failed--call queue aborted, <DATA> line 1.
      So, if anyone knows what is going on here, please let me know. I thought maybe my permissions on my directories weren't letting it write files, but I can't seem to change the property from Read-Only on any of my folders. Please HELP!!!!
        Hello everyone! I'm answering my own question here for any of you that had problems. Before installing Inline.pm on a win32 machine, go to your (assuming you have Visual Studio .NET, but it will likely be on any Visual C++ compiler) C:\some dir\Microsoft Visual Studio .NET\Vc7\bin directory, then run vcvars32.bat. This will setup all of your environment variables for Visuall C++'s compiler so that you don't have to do it manually. Apparently I had left something out, now its fixed and running though! Good Luck Inlining!