in reply to Install Module from CPAN

PPM isn't CPAN, try the following from the command prompt:

cpan Lab::VISA

I suspect that Lab::VISA isn't in any of the repositories you have set up for PPM.

See Installing Modules from the tutorials section of this site. For example A guide to installing modules for Win32 explains the difference between PPM and CPAN, how to instal from both and how to configure more repositories.

Replies are listed 'Best First'.
Re^2: Install Module from CPAN
by Bintuch (Acolyte) on Mar 17, 2010 at 12:08 UTC
    The command does not work. it fails in the 'nmake' section, even though it seems like it fetched the right module. I've tried to add CPAN to the repositories list but still the: 'ppm install Lab-VISA' does not find it.

      The cpan program and the ppm program are two different things., The cpan program installs modules directly from CPAN, while the ppm program only installs things that have been precompiled and prepackaged by (for example) ActiveState.

      You haven't told us how the installation fails for you. If you tell us how the installation via cpan fails for you, that helps us to help you better.

        Sorry. Here it is
        Going to read 'C:\Perl\cpan\Metadata' Database was generated on Mon, 15 Mar 2010 22:00:44 GMT Running install for module 'Lab::VISA' Running make for S/SC/SCHROEER/Lab/Lab-VISA-1.12.tar.gz Checksum for C:\Perl\cpan\sources\authors\id\S\SC\SCHROEER\Lab\Lab-VIS +A-1.12.tar.gz ok Lab-VISA-1.12/ Lab-VISA-1.12/README Lab-VISA-1.12/MANIFEST Lab-VISA-1.12/visa.i Lab-VISA-1.12/META.yml Lab-VISA-1.12/visa_wrap.cxx Lab-VISA-1.12/VISA.pod Lab-VISA-1.12/Makefile.PL Lab-VISA-1.12/t/ Lab-VISA-1.12/t/1.t Lab-VISA-1.12/Tutorial/ Lab-VISA-1.12/Tutorial/example3.pl Lab-VISA-1.12/Tutorial/example5.pl Lab-VISA-1.12/Tutorial/example1.pl Lab-VISA-1.12/Tutorial/example2.pl Lab-VISA-1.12/Tutorial/example4.pl Lab-VISA-1.12/Tutorial/example6.pl Lab-VISA-1.12/Tutorial/Talk/ Lab-VISA-1.12/Tutorial/Talk/lab-measurement/ Lab-VISA-1.12/Tutorial/Talk/lab-measurement/lab-measurement.pl Lab-VISA-1.12/Tutorial/Talk/real-world/ Lab-VISA-1.12/Tutorial/Talk/real-world/ladediagramm_qpc.pl Lab-VISA-1.12/Tutorial/Talk/lab-instrument/ Lab-VISA-1.12/Tutorial/Talk/lab-instrument/make_sweep.pl Lab-VISA-1.12/Tutorial/Talk/lab-instrument/query_id.pl Lab-VISA-1.12/Tutorial/Talk/Lab-VISA.ppt Lab-VISA-1.12/Tutorial/Talk/goodbye/ Lab-VISA-1.12/Tutorial/Talk/goodbye/goodbye.pl Lab-VISA-1.12/Tutorial/Talk/lab-visa/ Lab-VISA-1.12/Tutorial/Talk/lab-visa/raw_visa.pl Lab-VISA-1.12/VISA.pm Lab-VISA-1.12/lib/ Lab-VISA-1.12/lib/Lab/ Lab-VISA-1.12/lib/Lab/VISA/ Lab-VISA-1.12/lib/Lab/VISA/Tutorial.pod Lab-VISA-1.12/visadef.i CPAN.pm: Going to build S/SC/SCHROEER/Lab/Lab-VISA-1.12.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Lab::VISA cp lib/Lab/VISA/Tutorial.pod blib\lib\Lab\VISA\Tutorial.pod cp VISA.pod blib\lib\Lab\VISA.pod cp VISA.pm blib\lib\Lab\VISA.pm cl -c -IC:\VXIPNP\WinNT\include "-ID:\Microsoft Platform SDK\Incl +ude" -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ST +RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPE +RL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_RE +ADFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"1.12\" -DXS_VERSION=\"1.12 +\" "-IC:\Perl\lib\CORE" visa_wrap.cxx visa_wrap.cxx visa_wrap.cxx(1203) : error C2159: more than one storage class specifi +ed visa_wrap.cxx(1203) : warning C4518: 'typedef ' : storage-class or typ +e specifier(s) unexpected here; ignored visa_wrap.cxx(1203) : warning C4502: 'linkage specification' requires +use of keyword 'extern' and must precede all other specifiers visa_wrap.cxx(1204) : error C2143: syntax error : missing ';' before ' +*' visa_wrap.cxx(1204) : error C2378: 'SwigPerlWrapper' : redefinition; s +ymbol cannot be overloaded with a typedef visa_wrap.cxx(1203) : see declaration of 'SwigPerlWrapper' visa_wrap.cxx(1204) : error C2501: 'SwigPerlWrapperPtr' : missing stor +age-class or type specifiers visa_wrap.cxx(1209) : error C2146: syntax error : missing ';' before i +dentifier 'wrapper' visa_wrap.cxx(1209) : error C2501: 'SwigPerlWrapperPtr' : missing stor +age-class or type specifiers visa_wrap.cxx(1209) : error C2501: 'wrapper' : missing storage-class o +r type specifiers visa_wrap.cxx(2318) : error C2078: too many initializers visa_wrap.cxx(2556) : error C2039: 'wrapper' : is not a member of 'swi +g_command_info' visa_wrap.cxx(1207) : see declaration of 'swig_command_info' SCHROEER/Lab/Lab-VISA-1.12.tar.gz C:\PROGRA~1\MICROS~3\VC98\bin\nmake.exe -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible

      "The command does not work. it fails in the 'nmake' section, even though it seems like it fetched the right module"

      Could you post the output of cpan LAB::VISA? Without knowing what went wrong we can't help. See "Things to read and understand" below.

      "I've tried to add CPAN to the repositories list"

      CPAN isn't a PPM repository. A guide to installing modules for Win32 has a section on PPM::Repositories, explaining how to add them.

      Things to read and understand before replying How do I post a question effectively? and Writeup Formatting Tips. After searching Google I can't seem to find a ppd file for this module.

      Martin

        Thank you all for your answers!! Martin, please see Re^4