Installing Perl Modules from CPAN

I am new to Perl and new-ish to Arch Linux.  I want to start to install some packages from CPAN.
I read the perl package wiki article and while I found it on the overwhelming side, I took away that one of the recommended ways to install things from CPAN was with CPANPLUS::Dist::Arch.
So I installed this via
pacman -S perl-cpanplus-dist-arch
setupdistarch
Now I want to install some packages.  The cpanp manpage (as well as an example I found) seemed to indicate that this was now as easy as
cpanp i <modulename>
However, when I go to install any module, I get errors like
monolith: ~$ cpanp i Test::Harness
Installing Test::Harness (3.28)
CPANPLUS::Dist::Base will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/share/perl5/vendor_perl/CPANPLUS/Dist/Arch.pm, line 6.
CPANPLUS::Dist::Build::Constants will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/share/perl5/core_perl/CPANPLUS/Dist/Build.pm, line 16.
Running [/usr/bin/perl -e use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; } /home/jschwab/.cpanplus/5.18.1/build/Test-Harness-3.28/Makefile.PL INSTALLDIRS=site]...
Checking if your kit is complete...
Looks good
Writing Makefile for Test::Harness
Writing MYMETA.yml and MYMETA.json
[MSG] Module 'Test::Harness' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
[ERROR] Unknown variable name in IF block: checkdepends at /usr/share/perl5/core_perl/CPANPLUS/Module.pm line 830.
Searching Google for the error message just returned copies of the 'Module.pm' file in which the message appears.  Could someone help me figure out what is going on?
Last edited by wesphys (2013-09-13 22:55:13)

wesphys wrote:
I am new to Perl and new-ish to Arch Linux.  I want to start to install some packages from CPAN.
I read the perl package wiki article and while I found it on the overwhelming side, I took away that one of the recommended ways to install things from CPAN was with CPANPLUS::Dist::Arch.
So I installed this via
pacman -S perl-cpanplus-dist-arch
setupdistarch
Trying to reproduce above sequence:
[bitcoin@alarm-01 ~]$ yaourt -S perl-cpanplus-dist-arch
[sudo] password for bitcoin:
resolving dependencies...
looking for inter-conflicts...
Packages (1): perl-cpanplus-dist-arch-1.28-1
Total Download Size: 0.04 MiB
Total Installed Size: 0.15 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages ...
perl-cpanplus-dist-... 43.1 KiB 6.10K/s 00:07 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
(1/1) installing perl-cpanplus-dist-arch [######################] 100%
[bitcoin@alarm-01 ~]$ setupdistarch
-bash: setupdistarch: command not found
[bitcoin@alarm-01 ~]$ cd /usr/bin/vendor_perl/
[bitcoin@alarm-01 vendor_perl]$ ls
cpan2aur setupdistarch
[bitcoin@alarm-01 vendor_perl]$
Please advise. TiA

Similar Messages

  • Uninstall all CPAN-installed Perl modules

    A while back, there was a large perl upgrade which required rebuilding of manually-installed Perl modules. At the time, I did not take much of any action as I did not use any applications which depended on CPAN-installed modules -- all I did was to uninstall some older Perl apps which I no longer used.
    Unfortunately, that has recently changed.
    Though I know exactly which modules I need to have on my system when all is said and done, I have no idea how to uninstall all of the old ones which came from the CPAN shell. Does anyone know how to do so?

    rowdog wrote:
    Well, modules are just files so, if you're lucky, the easy way is to find the directory where the modules were installed and delete them.
    If you're unlucky, you've intermingled CPAN modules with those installed by Arch. If that's the case, you might be able to delete each module by hand but you need to be careful not to wipe out Arch's modules. This is slow and hazardous work so please be careful.
    My guess would be that the files are installed in /usr/lib/perl5/site_perl, because mine's empty and that's what it's for. The exact location is controlled by whatever you used to install the modules. (cpan probably, but there are others.)
    If you're really lucky, you can get away with
    cd /usr/lib/perl5/site_perl
    rm -rf .
    Yes, I do have such bad luck. I have used the CPAN.pm shell, the AUR, and pacman to install Perl modules. I shall do more research regarding exactly what goes where during a CPAN.pm-based install. I am not at my own computer so I cannot do all of this now. I will get back to you on this tomorrow. Thank you for your response.
    Last edited by Bushman (2011-07-31 13:10:00)

  • Cannot install perl modules

    Hi team,
    I’m trying to do a little perl script to telnet some cisco equipment.
    I’m trying to install some perl module through CPAN but I was got an error. Output is the following. Any ideas?
    Using MAC OSX 10.6.4
    cpan[13]> install Net::Telnet:Cisco
    Running install for module 'Net::Telnet::Cisco'
    CPAN: Data::Dumper loaded ok (v2.121_14)
    'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/Users/sepinto/.cpan/prefs'
    Running make for J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Checksum for /Users/sepinto/.cpan/sources/authors/id/J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.g z ok
    x Net-Telnet-Cisco-1.10/
    x Net-Telnet-Cisco-1.10/README
    x Net-Telnet-Cisco-1.10/Cisco.pm
    x Net-Telnet-Cisco-1.10/.cvsignore
    x Net-Telnet-Cisco-1.10/MANIFEST
    x Net-Telnet-Cisco-1.10/test.pl
    x Net-Telnet-Cisco-1.10/MANIFEST.SKIP
    x Net-Telnet-Cisco-1.10/Changes
    x Net-Telnet-Cisco-1.10/INSTALL
    x Net-Telnet-Cisco-1.10/Makefile.PL
    x Net-Telnet-Cisco-1.10/TODO
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    CPAN.pm: Going to build J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Checking if your kit is complete...
    Looks good
    Warning: prerequisite Net::Telnet 3.02 not found.
    Writing Makefile for Net::Telnet::Cisco
    ---- Unsatisfied dependencies detected during ----
    ---- JOSHUA/Net-Telnet-Cisco-1.10.tar.gz ----
    Net::Telnet [requires]
    Shall I follow them and prepend them to the queue
    of modules we are processing right now? [yes]
    Running make test
    Delayed until after prerequisites
    Running make install
    Delayed until after prerequisites
    Running install for module 'Net::Telnet'
    'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/Users/sepinto/.cpan/prefs'
    Running make for J/JR/JROGERS/Net-Telnet-3.03.tar.gz
    Has already been unwrapped into directory /Users/sepinto/.cpan/build/Net-Telnet-3.03-naYMND
    Could not make: Unknown error
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    Running make test
    Can't test without successful make
    Running make install
    Make had returned bad status, install seems impossible
    Running make for J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Has already been unwrapped into directory /Users/sepinto/.cpan/build/Net-Telnet-Cisco-1.10-jrURaI
    CPAN.pm: Going to build J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Warning: Prerequisite 'Net::Telnet => 3.02' for 'J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz' failed when processing 'J/JR/JROGERS/Net-Telnet-3.03.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
    Can't exec "make": No such file or directory at /System/Library/Perl/5.10.0/CPAN.pm line 7698.
    JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    make -- NOT OK
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    Running make test
    Can't test without successful make
    Running make install
    Make had returned bad status, install seems impossible
    Failed during this command:
    JOSHUA/Net-Telnet-Cisco-1.10.tar.gz : make NO
    Thanks for your help.
    Regards
    SP

    Hi Robert,
    Unfortunately, I already tried that. Here are the results:
    sepinto-mac:~ sepinto$ sudo perl -MCPAN -e shell
    Password:
    Terminal does not support AddHistory.
    cpan shell -- CPAN exploration and modules installation (v1.9205)
    ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)
    cpan[1]> install Net::Telnet
    CPAN: Storable loaded ok (v2.18)
    Going to read /Users/sepinto/.cpan/Metadata
    Database was generated on Mon, 16 Aug 2010 10:36:17 GMT
    Running install for module 'Net::Telnet'
    CPAN: Data::Dumper loaded ok (v2.121_14)
    'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/Users/sepinto/.cpan/prefs'
    Running make for J/JR/JROGERS/Net-Telnet-3.03.tar.gz
    CPAN: Digest::SHA loaded ok (v5.45)
    CPAN: Compress::Zlib loaded ok (v2.008)
    Checksum for /Users/sepinto/.cpan/sources/authors/id/J/JR/JROGERS/Net-Telnet-3.03.tar.gz ok
    Scanning cache /Users/sepinto/.cpan/build for sizes
    ............................................................................DONE
    x Net-Telnet-3.03/
    x Net-Telnet-3.03/Makefile.PL
    x Net-Telnet-3.03/ChangeLog
    x Net-Telnet-3.03/lib/
    x Net-Telnet-3.03/lib/Net/
    x Net-Telnet-3.03/lib/Net/Telnet.pm
    x Net-Telnet-3.03/t/
    x Net-Telnet-3.03/t/select.t
    x Net-Telnet-3.03/README
    x Net-Telnet-3.03/MANIFEST
    CPAN: File::Temp loaded ok (v0.18)
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    CPAN.pm: Going to build J/JR/JROGERS/Net-Telnet-3.03.tar.gz
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Net::Telnet
    Can't exec "make": No such file or directory at /System/Library/Perl/5.10.0/CPAN.pm line 7698.
    JROGERS/Net-Telnet-3.03.tar.gz
    make -- NOT OK
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    Running make test
    Can't test without successful make
    Running make install
    Make had returned bad status, install seems impossible
    Failed during this command:
    JROGERS/Net-Telnet-3.03.tar.gz : make NO

  • Problem calling two perl modules from java in seperate threads(JVM CRASHES)

    Dear Friends,
    I have one severe problem regarding calling perl modules from java
    I had to call two perl modules simultaneously (i.e.) from two threads,,, but jvm crashes when one of the perl calls is exiting earlier
    I am unable to spot out why ....
    For calling perl from java ...., We are first calling C code from java using JNI and then Perl code from C
    All works fine if we call only one perl call at a time.... If we call them in a synchronized manner the JVM is not crashing .... But we don't want blocking..
    The following is the code snippet
    <JAVA FILE>
    class Sample
         static {
              System.loadLibrary("xyz");  // Here xyz is the library file generated by compiling c code
         public native void call_PrintList();
         public native void call_PrintListNew();
         Sample()
              new Thread1(this).start();     
         public static void main(String args[])
              System.out.println("In the main Method");
              new Sample().call_PrintList();
         class Thread1 extends Thread
              Sample sample;
              Thread1(Sample sam)
                   sample=sam;
              public void run()
                   sample.call_PrintListNew();     
    }<C FILE>
    #include <EXTERN.h>
    #include <perl.h>
    static PerlInterpreter *my_perl;
    static char * words[] = {"alpha", "beta", "gamma", "delta", NULL } ;
    static void
    call_PrintList(){
         printf("\nIn the Call method of string.c\n");
            char *wor[] = {"hello", "sudha", NULL } ;
               char *my_argv[] = { "", "string.pl" };
               PERL_SYS_INIT3(&argc,&argv,&env);
               my_perl = perl_alloc();
                   PL_perl_destruct_level = 1; //// We have mentioned this also and tried removing destruct call
               perl_construct( my_perl );
               perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
              PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
               perl_run(my_perl);
         dSP ;
            perl_call_argv("PrintList",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
    //     perl_destruct(my_perl);
    //          perl_free(my_perl);
    //           PERL_SYS_TERM();
    static void
    call_PrintListNew(){
    printf("In the new call method\n");
    char *wor[] = {"Hiiiiiiiiiiiiiii", "Satyam123333", NULL } ;
            char *my_argv[] = { "", "string.pl" };
            PERL_SYS_INIT3(&argc,&argv,&env);
            my_perl = perl_alloc();
    PL_perl_destruct_level = 1;
            perl_construct( my_perl );
            perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
            PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
            perl_run(my_perl);
            dSP ;
            perl_call_argv("PrintListNew",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
      //      perl_destruct(my_perl);
      //      perl_free(my_perl);
       //     PERL_SYS_TERM();
    void callNew()
    call_PrintListNew();
    void call ( )
    call_PrintList();
    //char *wor[] = {"hello","sudha",NULL};
    /*   char *my_argv[] = { "", "string.pl" };
          PERL_SYS_INIT3(&argc,&argv,&env);
          my_perl = perl_alloc();
          perl_construct( my_perl );
          perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
         PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
          perl_run(my_perl);*/
       //   call_PrintList();                      /*** Compute 3 ** 4 ***/
    /*      perl_destruct(my_perl);
          perl_free(my_perl);
          PERL_SYS_TERM();*/
        }And Finally the perl code
    sub PrintList
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
    sub PrintListNew
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
            }Please help me in this regard

    Dear Friends,
    I have one severe problem regarding calling perl modules from java
    I had to call two perl modules simultaneously (i.e.) from two threads,,, but jvm crashes when one of the perl calls is exiting earlier
    I am unable to spot out why ....
    For calling perl from java ...., We are first calling C code from java using JNI and then Perl code from C
    All works fine if we call only one perl call at a time.... If we call them in a synchronized manner the JVM is not crashing .... But we don't want blocking..
    The following is the code snippet
    <JAVA FILE>
    class Sample
         static {
              System.loadLibrary("xyz");  // Here xyz is the library file generated by compiling c code
         public native void call_PrintList();
         public native void call_PrintListNew();
         Sample()
              new Thread1(this).start();     
         public static void main(String args[])
              System.out.println("In the main Method");
              new Sample().call_PrintList();
         class Thread1 extends Thread
              Sample sample;
              Thread1(Sample sam)
                   sample=sam;
              public void run()
                   sample.call_PrintListNew();     
    }<C FILE>
    #include <EXTERN.h>
    #include <perl.h>
    static PerlInterpreter *my_perl;
    static char * words[] = {"alpha", "beta", "gamma", "delta", NULL } ;
    static void
    call_PrintList(){
         printf("\nIn the Call method of string.c\n");
            char *wor[] = {"hello", "sudha", NULL } ;
               char *my_argv[] = { "", "string.pl" };
               PERL_SYS_INIT3(&argc,&argv,&env);
               my_perl = perl_alloc();
                   PL_perl_destruct_level = 1; //// We have mentioned this also and tried removing destruct call
               perl_construct( my_perl );
               perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
              PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
               perl_run(my_perl);
         dSP ;
            perl_call_argv("PrintList",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
    //     perl_destruct(my_perl);
    //          perl_free(my_perl);
    //           PERL_SYS_TERM();
    static void
    call_PrintListNew(){
    printf("In the new call method\n");
    char *wor[] = {"Hiiiiiiiiiiiiiii", "Satyam123333", NULL } ;
            char *my_argv[] = { "", "string.pl" };
            PERL_SYS_INIT3(&argc,&argv,&env);
            my_perl = perl_alloc();
    PL_perl_destruct_level = 1;
            perl_construct( my_perl );
            perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
            PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
            perl_run(my_perl);
            dSP ;
            perl_call_argv("PrintListNew",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
      //      perl_destruct(my_perl);
      //      perl_free(my_perl);
       //     PERL_SYS_TERM();
    void callNew()
    call_PrintListNew();
    void call ( )
    call_PrintList();
    //char *wor[] = {"hello","sudha",NULL};
    /*   char *my_argv[] = { "", "string.pl" };
          PERL_SYS_INIT3(&argc,&argv,&env);
          my_perl = perl_alloc();
          perl_construct( my_perl );
          perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
         PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
          perl_run(my_perl);*/
       //   call_PrintList();                      /*** Compute 3 ** 4 ***/
    /*      perl_destruct(my_perl);
          perl_free(my_perl);
          PERL_SYS_TERM();*/
        }And Finally the perl code
    sub PrintList
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
    sub PrintListNew
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
            }Please help me in this regard

  • Fail installing perl modules in new sparc server

    Hi,
    I'm trying to install the perl modules needed by my applications in a sparc server SunFire V210 with solaris 9 64bit. All the attempts fail because the interpreter is compiled with forte, this is the explanation i got. I found a solution in CPAN called perlgcc but it doesn't work it build a bad Makefile, the file has a lot of mistakes. Perl.com people tell me to change parameters in the makefiles and Config.pm but it's very hard to find the correct values, i'm not sure i fix the correct things.still it doesn't work.
    I need an urgent solution it permits me to add modules without correction in the each makefile. I hope there is a standar procedure to solve it.
    Thanks!

    Hi,
    Here is your solution (I hope). I've being doing this this week and worked.
    Look the stuff is connected with the compilers used to complie perl and as you see later other stuff on the sun. At the sun the stuff is compiled with sun compiler which is not provided on the solaris 8, 9 nor 10. Fortunately there is gcc installed on the sol10.
    -bash-3.00# gcc --version<br />
    gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    -bash-3.00#
    The perl is compiled with sun compiler cc
    -bash-3.00# perl -V | more
    More
    Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
    More
    Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris-64int
    uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
    f
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_T
    S_ERRNO',
    optimize='-xO3 -xspace -xildoff',
    cppflags=''
    ccversion='Sun WorkShop', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lsee
    ksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.
    4/lib/sun4-solaris-64int/CORE'
    cccdlflags='-KPIC', lddlflags='-G'
    What to do??? Yes - you are on sol10 - then do it
    1. Logon as a root
    2. Check your path and compare with
    -bash-3.00# echo $PATH
    /usr/sbin:/usr/bin:/usr/sfw:/usr/sfw/bin:/usr/sfw/lib:/usr/s fw/include:/opt/sfw:
    /opt/sfw/bin:/opt/sfw/lib:/opt/sfw/include:/usr/ccs/bin:/usr /ccs/lib
    -bash-3.00#
    if differs upto the last /usr/ccs/lib modify your profile file ( anthing ofter the last /usr/ccs/lib can be aded).
    3. Check out the the comands
    gcc --version<br />
    perl -V
    4. If everything upto this step is ok you can proceed
    5. You may do the installation of the perl modules in two ways:
    a.) with CPAN module - Internet connection MANDATORY
    b.) with perl and downloaded tar.gz module
    5.a) With CPAN module
    5.a.1) Launch the command to configure the CPAN module
    perl -MCPAN -e shell
    you will be asked to give the answers inorder to configure CPAN
    5.a.2) When you see cpan> prompt do the following:
    o conf makepl_arg 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc' press return
    5.a.3) Type "o conf commit" press return. You may install your modules now with the install command e.g. install HTML::Parser for example.
    5.b.1) Download your modules from http://www.cpan.org to your server to /var/tmp/packed or whatever folder you want.
    5.b.2) unzip then untar and cd into subfolder
    5.b.3) type ./Makefile.PL -t 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc'
    5.b.4) Type make install
    6.) In both methods you have to check if the modules are installed by issuing the commnad:
    perl -e 'use Your::Module' e.g.
    perl -e 'use HTTP::Parser'
    if no error message on the term you are ready
    Rem. The differrences are in the flags used to compile and link with these two compilers sun cc and gnu cc. There are of course problems with 64bit values on sun64bit e.g. SPARC and Intel stuff cause Perl does not support real 64bit values yet. The Perl modules should use only floating point represetnation with around 53~bit precision. But this issue depends on the module creator not you if you do not want to do the remedy.
    I hope it will help you
    good luck

  • How to remove/uninstall custom installed perl modules?

    Hello all.
    Yesterday I upgraded from 10.3.7 to 10.4.5, then started to reinstall a bundle of perl modules (via the Terminal and 'perl Makefile.PL -- make -- make test -- [sudo] make install').
    As I saw too late, some of those modules I installed are now part of the standard OS X installation -- now some perl modules are twice on my machine, the 'originals' (so to say) in '/System/Library/Perl/5.8.6/...', and the 're-installed' are -- as usually -- in '/Library/Perl/5.8.6/...'.
    My questions:
    (1) Can these duplicates do any harm while executing perl code?
    (2) Is there an easy way to get rid of the duplicates (e.g., move the associated files in '/Library/Perl/5.8.6/...' to the trash)?
    Fortunately I have saved the terminal output of every installation, so it should be easy to find everything that was changed.
    Any advice is appreciated -- thanks in advance.
    Joerg
    G4/400 PCI (Oct. 1999) w/ 1 GB RAM & 128GB internal drive, Pioneer DVR-110D   Mac OS X (10.4.4)  

    Perl has a list of paths it searches when it needs to find a given module, similar to how the shell uses the PATH variable. If the things you installed are in a directory after that which contains Apple's official stuff, your stuff is invisible. Check the section labeled "@INC" in the output of 'perl -V'...that list is searched top-to-bottom.
    If what you installed is ahead of Apple's but what you installed is at least as high a version number as Apple's, again no problem in general. The modules Apple supplies have genereally quite stable API, so there's no problem if a program expects Appl'es but gets yours instead. OTOH, if you have a lower version, there could be trouble, since things may rely on the features only present in new versions (something for a certain OS X would reasonably assume "the stuff that came with that OS X" as a minimum).
    Anything you installed manually you can remove manually as well, using "rm" or dragging stuff to the trash. Modules often install a .packlist file somewhere in $arch/auto/ in your perl lib dir.
    I think you can often do '[sudo] make uninstall UNINST=1' to uninstall, assuming you kept the original builds or feel like redoing 'perl Makefile.PL' in the exact same version of the modules you installed. However, the 'uninstall' target is generally frowned upon by perl folks.

  • Can't install perl modul DBD::Oracle with XE

    Hello,
    I have installed oracle 10.2.0.1 XE and want now install the perl modul DBD::Oracle.
    After running
    perl Makefile.PL
    I get the message:
    Unable to locate an oracle.mk, proc.mk or other suitable *.mkfile in your Oracle installation. (I looked in
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/lib/oracle.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/oracle.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_rdbms.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/otrace/demo/atmoci.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/precomp/demo/proc/proc.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/precomp/demo/proc/demo_proc.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/proc/lib/proc.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/proc16/lib/proc16.mk)
    And the program is right!!
    I do not have any of this files on my Computer.
    I also looked in the files
    oracle-instantclient-basic-10.2.0.1-1.i386.rpm
    oracle-instantclient-devel-10.2.0.1-1.i386.rpm
    where I also can't find these files.
    Could you please help and tell me, where I can get these files?
    Thank you,
    Marc

    See the thread on Perl with XE in Re: How can I get CPAN  DBD::Oracle to install with XE?
    -- cj

  • Can't install perl modules for bugzilla

    I'm currently attempting to install Bugzilla on my Arch server. This service depends on Perl and a collection of modules.
    I attempted:
    perl install-module.pl --all
    ... and it worked, so it seemed. However, when attempting to run my install script again, I am warned that the module DBI is not installed. I attempt to install it manually (specify it in particular with the previous command), and it says that DBI is up to date. I attempt the script again, and still get the error.
    Is this a bug with Bugzilla's install script, or with the installation of Perl modules?

    Here is a link to a resolution in Lion. It may also solve your Mountain Lion Perl DBD issue as well.
    If you run the command below before executing your Perl script the library is found and all is well!
    export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
    Put this in your .bashrc or .bash_profile.
    On Apple StackExchange, Matthew Weiss had another approach.
    I found on another website the following command
    $ sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'
    This updated all my perl modules and all is back to normal. Not sure why or what, but don't care that it is working now.

  • Invoking Perl module from Apex

    I am developing an application using Apex that needs to be integrated with some other modules written in different languages.
    In my application I need to invoke a perl module/API based on some button action.
    Please suggest me the ways how I can do this.
    The perl module is already existing one and now we can not change it to Java program.

    Hello,
    Whilst it's possibly to 'call out' to an external Perl module, I think you're actually probably making things more complicated by going that route.
    As an alternative, why not have the Perl code actually connect to the Oracle database and check for the data changing itself?
    If you do want to perform the external call yourself, then the following AskTom thread should give you some ideas on how to do it -
    http://asktom.oracle.com/pls/ask/f?p=4950:8:9608971842817866565::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241
    There's actually some other options, you could actually connect to the other databases directly from the Oracle DB (using dblinks, hetrogenous connectivity etc), or you could convert the Perl module (or wrap it) so that it's callable via a URL in which case you could then perform an HTTP call from out of the database using utl_http.
    It really depends on the specifics of what your perl module does, what sort of processing etc.

  • How do I install the modules from Business Catalyst into Dreamweaver?

    They have changed things around compared to Dreamweaver 6. I have my website on the B.C. website, but don't know how to add the modules on Dreamweaver.

    Thanks for the reply. I already have the add on installed. I've had it installed and using it for a few months now. The issue is, unlike the previous version before DW CC, I was able to install the modules on my computer and open them up in D.W. and was able to add the modules to my pages through D.W.
    I'll look at the link again and see if that is what it's showing me what to do.

  • Install perl module

    I am trying to install the essbase.pm and have some trouble. The makefile refers to /api/lib/libmaxl directory which is not part of the windows install. Does anyone have any clue as to how to modify the makefile.PL.win32 file?ThanksRandy

    Hi, under windows, the makefile refers to:$opts{MYEXTLIB} = "$EH/api/lib/libmaxl\$(LIB_EXT)";ie libmaxl.lib since the backslash in "\$(LIB_EXT)" is just there in perl to escape the $ and use the variable LIB_EXT replace the previous line by:$opts{MYEXTLIB} = "$EH/api/lib/libmaxl.lib";But, I find more practical to generate maxl msh files on the fly using perl, or using parameters for maxl scripts rather than use the essbase.pm modulehope it helpsEric BelmonPartake Consulting

  • How to call a perl module from Java program.

    Hi,
    I create a simple java program as follows
    class test{
    public static void main(String args[])
    {try {                    
    Runtime r = Runtime.getRuntime();
    r.exec("perl test.pl");
    catch(Exception e)
    {e.printStackTrace();}
    and test.pl is located in the same directory as the java program. The program compiles but with no return as I execute it. I am not sure what is wrong.
    Thanks,

    I think the wrong line is here; r.exec("perl test.pl");
    Usually the JVM needs the full path.If the path for either the executable or the script was wrong then, given the code posted, it would not hang.
    >
    To automatticaly get the path (if the file is in the
    class path) use
    System.getProperty("java.class.path")
    That gets paths(plural).
    Try this:
    r.exec("perl " +
    System.getProperty("java.class.path") + "\test.pl");I am rather certain that that won't work on any standard operating system.

  • Perl module install

    Well I'm having problems getting NET::DNS, so I tried the
    sudo perl -MCPAN -e 'install Bundle::LWP'
    and it worked
    but when I try
    sudo perl -MCPAN -e 'install NET::DNS'
    when I go to cpan site I ran an inquery on net::dns and got
    cpan> i /NET::DNS/
    CPAN: Storable loaded ok
    Going to read /Users/mttm/.cpan/Metadata
    Database was generated on Sat, 25 Nov 2006 23:25:04 GMT
    Module Net::DNS (O/OL/OLAF/Net-DNS-0.59.tar.gz)
    Module Net::DNS::Check (L/LL/LLT/Net-DNS-Check-0.45.tar.gz)
    Module Net::DNS::Check::Config (L/LL/LLT/Net-DNS-Check-0.45.tar.gz)
    etc............
    but I'm unable to install using
    sudo perl -MCPAN -e 'install NET::DNS'
    so what am I doing wrong? One works the other doesn't
    error messages are:
    CPAN: Storable loaded ok
    Going to read /Users/mttm/.cpan/Metadata
    Database was generated on Sat, 25 Nov 2006 23:25:04 GMT
    Warning: Cannot install NET::DNS, don't know what it is.
    Try the command
    i /NET::DNS/
    to find objects with matching identifiers.
    macbook pro   Mac OS X (10.4.8)  

    Perhaps the search with i // is case-insensitive, but
    the install command is case-sensitive?
    I agree, I installed Net::DNS from CPAN just now without trouble. But I get the same error message if I try NET::DNS.
    While some things aren't case-senstive in OS X, I think when working in the Terminal, it's best to treat everything as if it's case sensitive. I find that I have fewer problems and unexpected surprises that way.
    charlie

  • Install mechanize module - perl

    Hello,
    I have Snow Leopard along with Xcode as well...
    I want to install Mechanize module - perl. I tried installing the module from few sites but i keep getting following error while compiling perl script.
    Can't locate WWW/Mechanize.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at mp3.pl line 7.
    BEGIN failed--compilation aborted at mp3.pl line 7.
    Any help would be appreciated.

    Did you ever find a solution to your question? I know it was a while ago and i am trying to accomplish the same task with an EBS url

  • Problems installing Net::AIM with CPAN

    I've been trying to install Net::AIM but hit a dead end when trying to use the perl command "make Makefile" so I thought to try installing through CPAN and after reading through various posts to learn how I still am not able to install. Here is my latest effort and a typical response:
    blue$ sudo perl -MCPAN -e shell
    cpan> install Net::AIM
    CPAN: Storable loaded ok
    Going to read /Users/blue/.cpan/Metadata
    Database was generated on Mon, 20 Mar 2006 08:08:21 GMT
    Running install for module Net::AIM
    Running make for A/AR/ARYEH/Net-AIM-1.22.tar.gz
    CPAN: Digest::MD5 loaded ok
    CPAN: Compress::Zlib loaded ok
    Checksum for /Users/blue/.cpan/sources/authors/id/A/AR/ARYEH/Net-AIM-1.22.tar.gz ok
    Scanning cache /Users/blue/.cpan/build for sizes
    Net-AIM-1.22/
    Net-AIM-1.22/AIM/
    Net-AIM-1.22/AIM/Connection.pm
    Net-AIM-1.22/AIM/Event.pm
    Net-AIM-1.22/AIM.pm
    Net-AIM-1.22/MANIFEST
    Net-AIM-1.22/Makefile.PL
    Net-AIM-1.22/PROTOCOL
    Net-AIM-1.22/README
    Net-AIM-1.22/TODO
    Net-AIM-1.22/aimtest
    Net-AIM-1.22/Net
    Removing previously used /Users/blue/.cpan/build/Net-AIM-1.22
    CPAN.pm: Going to build A/AR/ARYEH/Net-AIM-1.22.tar.gz
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Net::AIM
    -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible
    I'm hoping this is not simply a permissions problem - cuz I'll feel like an absolute dunce - but what directories do I need to check when installing perl modules for permissions?
    Dual 2 GHz G5   Mac OS X (10.4.5)  

    I've downloaded and Installed Developer Tools from Apple's site, restarted the machine, and am having the same problems as before. I tried to include, below, the various commands different responders requested me to try:
    blue$ perl Makefile.PL
    Writing Makefile for Net::AIM
    blue$ make
    -bash: make: command not found
    blue$ perl make
    Can't open perl script "make": No such file or directory
    blue$ sudo perl make
    Can't open perl script "make": No such file or directory
    blue$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
    blue$ echo $LDDLFLAGS $CCFLAGS $CFLAGS $CPPFLAGS $LDFLAGS
    blue$ which make
    no make in /bin /sbin /usr/bin /usr/sbin /usr/local/bin
    blue$ sudo perl Makefile
    Bareword found where operator expected at Makefile line 33, near "10.3 cc"
    (Missing operator before cc?)
    Bareword found where operator expected at Makefile line 35, near "LDFLAGS = -L/usr"
    (Might be a runaway multi-line // string starting on line 34)
    (Do you need to predeclare LDFLAGS?)
    Bareword found where operator expected at Makefile line 36, near "LIBC = /usr"
    (Might be a runaway multi-line // string starting on line 35)
    (Do you need to predeclare LIBC?)
    Semicolon seems to be missing at Makefile line 40.
    [...pages of error messages...]
    Backslash found where operator expected at Makefile line 466, near "' or print "Could not add META.yml to MANIFEST: $${'\"
    (Missing operator before \?)
    Array found where operator expected at Makefile line 466, at end of line
    (Missing operator before ?)
    Backslash found where operator expected at Makefile line 466, near "@'\"
    (Missing operator before \?)
    syntax error at Makefile line 34, near "10.3 cc
    LDDLFLAGS "
    Unmatched right curly bracket at Makefile line 466, at end of line
    Execution of Makefile aborted due to compilation errors.
    blue$
    Any suggestions?
    Dual 2 GHz G5 Mac OS X (10.4.2)

Maybe you are looking for

  • PDF Template for XML Report

    We are trying to create a PDF Template for an XML Publisher Report using Adobe Acrobat Profession Version. The PDF Template works fine for one employee but when the start and end body tags are inserted in the template, the concurrent process to submi

  • How do I view content in Design view once everything is grayed out?

    I was building a web site.   When I switched from horizontal view to vertical view I was no longer able to view content in design view. The entire page was grayed out.  I'm also not able to view content in design view in other web sites too. How do I

  • ICR - File Upload, FBICRC_S_UPLOAD is missing

    Dear experts, I want to expand the Data Selection Process of ICR to manual file upload. I also read the following thread, which explains how to involve Companies via file import. Thread: IC reconciliation process with file import Problem 1: In this t

  • Hi Guys I am new to this, need a hand

    Okay so I have a video that is about 40 minutes long. I am making a short 3-4 minute movie. I transfered the video to the college's computer and then transfered it to an external HD and then transfered it to my computer. Now the video is 40 minutes l

  • IMovie Keeps Freezing On MacBook Pro

    I am using a late 2011 MacBook Pro 13 inch and running iMovie on Mountain Lion. When I open iMovie and scroll through my imported videos the rainbow cursor (sorry I dont know the correct name) appears and I can't do anything until it goes away. Why d