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:
But when I make the file I get the below error, what am I doing wrong?(($^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/', ) ),
My Makefile is as follows: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
#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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |