Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Unable to install Lab::VISA module

by syphilis (Archbishop)
on Dec 04, 2014 at 23:05 UTC ( [id://1109299]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Unable to install Lab::VISA module
in thread Unable to install Lab::VISA module

Yeah I have installed Strawberry perl and trying to install the Lab::VISA module from Windows command prompt

But there's a "gcc-4" (in your second post) and, on Windows at least, Cygwin is the only system that has a compiler named "gcc-4" (AFAIK).
Also, when you ran 'make', there were no complaints about incorrect syntax in the Makefile - which suggests to me that the Makefile was written for the 'make' utility - which means you ran a Cygwin perl as that's the only perl on Windows that writes Makefiles for 'make' by default. (Other Windows perls write Makefiles for either 'nmake' or 'dmake' by default.)
It's most unusual on Windows to have a 'make' utility at your disposal unless Cygwin is in your path. If your perl is Strawbeery Perl you need to run 'dmake'.

Best thing would be to run perl -V and post the output so that we can see exactly which perl is being invoked.
And also provide the output for /usr/bin/gcc -v (and any other CC you might have specified).

Lastly, note that if you are using a Cygwin perl, then that Windows library for Visa will be of no use - you'll have to use a Visa library built for Cygwin. There may be one you can install using setup.exe.

However, I now gather that your intention is to use Strawberry Perl. In order to do that, make sure you're running in a native Windows (cmd.exe) shell, not a Cygwin shell.

Cheers,
Rob

Replies are listed 'Best First'.
Re^5: Unable to install Lab::VISA module
by savi (Novice) on Dec 04, 2014 at 23:20 UTC
    I am not using cygwin perl, I want to use Strawberry perl.When I run perl -V this is the output I get, this is from the Windows(cmd.exe):
    C:\Strawberry\cpan\Lab-VISA-3.02>perl -V Summary of my perl5 (revision 5 version 14 subversion 2) configuration +: Platform: osname=cygwin, osvers=1.7.15(0.26053), archname=cygwin-thread-mult +i-64int uname='cygwin_nt-5.1 winxp 1.7.15(0.26053) 2012-05-09 10:25 i686 c +ygwin ' config_args='-de -Dlibperl=cygperl5_14.dll -Dcc=gcc-4 -Dld=g++-4 - +Darchname= i686-cygwin-threads-64int -Dmksymlinks -Dusethreads -Accflags=-g' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc-4', ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g +-fno-stric t-aliasing -pipe -fstack-protector', optimize='-O3', cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict- +aliasing - pipe -fstack-protector' ccversion='', gccversion='4.5.3', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='of +f_t', lsee ksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++-4', ldflags =' -Wl,--enable-auto-import -Wl,--export-all-s +ymbols -Wl ,--enable-auto-image-base -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib /lib libs=-lgdbm -ldb -ldl -lcrypt -lgdbm_compat perllibs=-ldl -lcrypt libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=cygperl5_14 +.dll gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' --shared -Wl,--enable-auto-import -Wl +,--export- all-symbols -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-prot +ector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_PRESERVE_IVUV PERL_USE_SAFE_PUTENV USE_64_BIT_INT USE_ITHREA +DS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Locally applied patches: Bug#55162 File::Spec::case_tolerant performance CYG07 $vendorarch/auto/.rebase CYG15 static Win32CORE CYG17 cyg-1.7 paths-utf8 0c612ce82 Fix building static extensions on cygwin, -UUSEIMPOR +TLIB 1bac5ecc1 Fix 64-bit threading sv.c: S_anonymise_cv_maybe Cygwin::sync_winenv added Built under cygwin Compiled at Jul 12 2012 14:17:21 @INC: /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 . C:\Strawberry\cpan\Lab-VISA-3.02>/usr/bin/gcc -v The system cannot find the path specified.
      C:\Strawberry\cpan\Lab-VISA-3.02>/usr/bin/gcc -v
      The system cannot find the path specified.


      But in your first post you have:
      perl Makefile.PL CC=/usr/bin/gcc
      Ok ... the 'perl -V' output that you provided is for Cygwin perl, not Srawberry Perl.
      To use Strawberry Perl, you need to either remove Cygwin from the path, or put strawberry at the beginning of the path.

      To see what's currently in your path, just enter set PATH at the command prompt.

      Once you can get 'perl -V' to output the details for Strawberry Perl you are right to go. Make sure you then use 'dmake', not 'make'.

      Cheers,
      Rob
        Perfect I was able to fix the problem, with chaning the PATH variables. I am so thankful to you Rob. You made my day. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2024-04-18 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found