Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Installing Inline.pm on win32

by fredopalus (Friar)
on Jul 13, 2003 at 23:04 UTC ( [id://273849]=note: print w/replies, xml ) Need Help??


in reply to Installing Inline.pm on win32

To get the error, you can pipe the output to a text file like so:
C:\DIR> nmake test > error.txt

Replies are listed 'Best First'.
Re: Re: Installing Inline.pm on win32
by SyN/AcK (Scribe) on Jul 14, 2003 at 00:17 UTC
    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!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found