savi has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to install Lab::VISA module
by syphilis (Archbishop) on Dec 04, 2014 at 21:42 UTC | |
by Laurent_R (Canon) on Dec 04, 2014 at 22:25 UTC | |
by savi (Novice) on Dec 04, 2014 at 22:38 UTC | |
by syphilis (Archbishop) on Dec 04, 2014 at 23:05 UTC | |
by savi (Novice) on Dec 04, 2014 at 23:20 UTC | |
| |
by savi (Novice) on Dec 04, 2014 at 22:24 UTC | |
by savi (Novice) on Dec 04, 2014 at 22:37 UTC | |
by savi (Novice) on Dec 04, 2014 at 22:46 UTC | |
|
Re: Unable to install Lab::VISA module
by dasgar (Priest) on Dec 04, 2014 at 23:54 UTC | |
by savi (Novice) on Dec 05, 2014 at 00:14 UTC | |
by Anonymous Monk on Dec 05, 2014 at 05:50 UTC | |
by savi (Novice) on Dec 05, 2014 at 17:27 UTC | |
|
Re: Unable to install Lab::VISA module
by toolic (Bishop) on Dec 04, 2014 at 21:25 UTC | |
by savi (Novice) on Dec 04, 2014 at 21:32 UTC |