http://www.perlmonks.org?node_id=803600

ch123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I want to call a C function from perl program.I am using ActiveState Perl 5.8.9. I installed "Inline" module from ppm(perl package manager)

This is the code which i have written

#!/usr/bin/perl -w use Inline C; use strict; hello_inline(); __END__ __C__ #include <stdio.h> void hello_inline( ) { printf( "Hello World. Best Regards from Inline\n" ); }

when I run this code I am getting following error message,

"'nmake' is not recognized as an internal or external command,operable program or batch file.
A problem was encountered while attempting to compile and install your + Inline C code. The command that failed was: nmake > out.make 2>&1
The build directory was: D:\UI\_Inline\build\c_pl_5cd4
To debug the problem, cd to the build directory, and inspect the outpu +t files at D:\UI\c.pl line 0 INIT failed--call queue aborted".

Then I installed "nmake" and copied NMAKE.EXE and namke.ERR files to c:\WINDOWS\System32 and added "c:\WINDOWS\System32;" in the path variable but no use still i am getting the same error

Output file mentioned in the path above D:\UI\_Inline\build\c_pl_5cd4 has the following contents

Unable to find a perl 5 (by these names: D:\Softwares\Perl\Perl5.8\bin +\perl.exe perl.exe perl5.exe perl5.8.9.exe miniperl.exe, in these dir +s: . D:\Softwares\Perl\Perl5.8\site\bin D:\Softwares\Perl\Perl5.8\bin + C:\Perl\site\bin C:\Perl\bin D:\Softwares\bin\ D:\Softwares\Perl\sit +e\bin D:\Softwares\Perl\bin D:\Softwares\Perl\Perl5.10\site\bin D:\So +ftwares\Perl\Perl5.10\bin D:\Softwares\Perl\bin\ D:\Perl\bin\ C:\WIND +OWS\system32 C:\WINDOWS C:\Serena\CHANGE~1\DIMENS~1\9.1\PROG C:\WINDO +WS\system32\WBEM C:\Program Files\IVI\bin C:\VXIPNP\WinNT\Bin C:\VXIP +NP\WinNT\Bin\ C:\WINDOWS\system32\NMAKE.exe D:\Softwares\Perl\Perl5.8 +\bin\perl.exe D:\Softwares\TK\bin C:\Tcl\bin C:\Program Files\Microso +ft Visual Studio\Common\Tools\WinNT C:\Program Files\Microsoft Visual + Studio\Common\MSDev98\Bin C:\Program Files\Microsoft Visual Studio\C +ommon\Tools C:\Program Files\Microsoft Visual Studio\VC98\bin D:\Soft +wares\Perl\Perl5.8\site\lib D:\Softwares\Perl\Perl5.8\bin) Writing Makefile for c_pl_5cd4

Can any body help me in solving this.

Thanks in advance

ch123