Hi, I am very new to PERL and I have been fighting with this issues for past one week now. It is very disappointing that I am not able to solve this issue. Any help is greatly appreciated. I downloaded the LAB::VISA module from http://search.cpan.org/dist/Lab-VISA/li ... lation.pod and unzipped it. I downloaded NI-VISA, and my Makefile.PL looks like this:

(($^O =~ /MSWin32/) ? ('LIBS' => ['"-lC:\\Program Files\\IVI Foundation\\VISA\\WinNT\\lib\ +\msc\\visa32.lib"'], 'INC' => '"-IC:\\Program Files\\IVI Foundation\\VISA\\WinNT\\Include"' +, ) : ('LIBS' => ['-lvisa'], 'INC' => '-I/usr/local/include/', ) ),
But when I make the file I get the below error, what am I doing wrong?

C:\Strawberry\cpan\Lab-VISA-3.02>perl Makefile.PL CC=/usr/bin/gcc Note (probably harmless): No library found for -lvisa Writing Makefile for Lab::VISA Writing MYMETA.yml C:\Strawberry\cpan\Lab-VISA-3.02>make Skip blib/lib/Lab/VISA.pod (unchanged) Skip blib/lib/Lab/VISA/Installation.pod (unchanged) Skip blib/lib/Lab/VISA.pm (unchanged) /usr/bin/gcc -c -I/usr/local/include/ -DPERL_USE_SAFE_PUTENV -U__STRIC +T_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 -DV +ERSION =\"3.02\" -DXS_VERSION=\"3.02\" "-I/usr/lib/perl5/5.14/i686-cygwin-thr +eads-64i nt/CORE" visa_wrap.c visa_wrap.c:1558:18: fatal error: visa.h: No such file or directory compilation terminated. Makefile:336: recipe for target `visa_wrap.o' failed make: *** [visa_wrap.o] Error 1
My Makefile is as follows:
#This is where the problem occurs. .c$(OBJ_EXT): $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) + $*.c

In reply to Unable to install Lab::VISA module by savi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.