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

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.

Replies are listed 'Best First'.
Re^6: Unable to install Lab::VISA module
by syphilis (Archbishop) on Dec 05, 2014 at 01:15 UTC
    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. :)