How to install CPAN modules

OS Ver: 10.8.5
I'm just starting to mess around with Perl on my mac, and went to install WWW::Mecahnize, only to find that it would fail via CPAN. After a little digging, i found i needed Xcode command line utilities installed. After that, i found different suggestions of how to continue.
What is the "best practice" to instal CPAN modules? Should i be root? Should i use a custom directory so as not to mess with the apple supported installation? Is there an article on this?

chacham wrote:
Thanx. CPAN via sudo, that just what i needed to know/hear.
Does that mean that you don't need to know a better option?
You can install modules into a private CPAN as a non-root user.
https://wiki.hpcc.msu.edu/display/Bioinfo/Installing+Local+Perl+Modules+with+CPA N
This will avoid lots of hassles.

Similar Messages

  • How to install memory modules on a macbook pro 15"

    I run Windows 7 via parallels desktop on my macbook pro. How do I type special characters on a Word document using the mac keyboard?

    how to install memory modules on a macbook pro 15"
    Read the manual / user guide that came with your comptuer or download it from http://support.apple.com/manuals/
    I run Windows 7 via parallels desktop on my macbook pro. How do I type special characters on a Word document using the mac keyboard?
    Post your question on the Paralells forums:  http://forums.parallels.com

  • How to install Apache module mod_rewrite

    Kindly tell me, how to install Apache module mod_rewrite which is a standard module in the Oracle HTTP Server (OHS).. I have installed OAS(10.1.2) but mod_rewrite module is missing..
    Edited by: SrinivasanSeniorDBA on 26 Feb, 2010 2:42 PM

    Got it

  • Problems installing CPAN Modules

    Hi All,
    I'm trying to build DBI module and get following error during make
    this is kind of odd because this has been done before on our other machines
    and we didn't get this problem.
    I have seem people get this kind of error before but I have never found a
    disent solution to it.
    Thank you for your help. If I find the cause of the problem I'll post/email
    a workaround.
    # perl Makefile.PL
    *** Note:
    The optional PlRPC-modules (RPC::PlServer etc) are not installed.
    If you want to use the DBD::Proxy driver and DBI::ProxyServer
    modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
    Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
    You can install them any time after installing the DBI.
    You do not need these modules for typical DBI usage.
    Optional modules are available from any CPAN mirror, in particular
    http://www.perl.com/CPAN/modules/by-module
    http://www.perl.org/CPAN/modules/by-module
    ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module
    Writing Makefile for DBI
    Remember to actually read the README file!
    Use 'make' to build the software (dmake or nmake on Windows).
    Then 'make test' to execute self tests.
    Then 'make install' to install the DBI and then delete this working
    directory before unpacking and building any DBD::* drivers.
    # make
    make: not found
    # PATH=$PATH:/usr/local/bin
    # export PATH
    # make
    gcc -c -I/usr/local/include -O3 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\"
    -fPIC
    -I/u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503/sun4-solaris/CORE
    -Wall -Wno-comment -DDBI_NO_THREADS Perl.c
    Perl.xsi: In function `XS_DBD__Perl__dr_discon_all_':
    Perl.xsi:38: `sv_yes' undeclared (first use in this function)
    Perl.xsi:38: (Each undeclared identifier is reported only once
    Perl.xsi:38: for each function it appears in.)
    Perl.xsi:38: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__db__login':
    Perl.xsi:63: `sv_yes' undeclared (first use in this function)
    Perl.xsi:63: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__db_commit':
    Perl.xsi:75: `sv_yes' undeclared (first use in this function)
    Perl.xsi:75: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__db_rollback':
    Perl.xsi:84: `sv_yes' undeclared (first use in this function)
    Perl.xsi:84: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__db_disconnect':
    Perl.xsi:108: `sv_yes' undeclared (first use in this function)
    Perl.xsi:108: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__db_STORE':
    Perl.xsi:121: `sv_yes' undeclared (first use in this function)
    Perl.xsi:124: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__db_DESTROY':
    Perl.xsi:143: `sv_yes' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st__prepare':
    Perl.xsi:197: `na' undeclared (first use in this function)
    Perl.xsi:197: warning: left-hand operand of comma expression has no effect
    Perl.xsi:197: warning: left-hand operand of comma expression has no effect
    Perl.xsi:198: `sv_yes' undeclared (first use in this function)
    Perl.xsi:198: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st_bind_param':
    Perl.xsi:233: `na' undeclared (first use in this function)
    Perl.xsi:233: warning: left-hand operand of comma expression has no effect
    Perl.xsi:233: warning: left-hand operand of comma expression has no effect
    Perl.xsi:239: `sv_yes' undeclared (first use in this function)
    Perl.xsi:239: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st_bind_param_inout':
    Perl.xsi:269: `na' undeclared (first use in this function)
    Perl.xsi:269: warning: left-hand operand of comma expression has no effect
    Perl.xsi:269: warning: left-hand operand of comma expression has no effect
    Perl.xsi:274: `sv_yes' undeclared (first use in this function)
    Perl.xsi:274: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st_fetchrow_arrayref':
    Perl.xsi:328: `sv_undef' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st_finish':
    Perl.xsi:369: `sv_yes' undeclared (first use in this function)
    Perl.xsi:369: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st_blob_read':
    Perl.xsi:388: `sv_undef' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st_STORE':
    Perl.xsi:401: `sv_yes' undeclared (first use in this function)
    Perl.xsi:404: `sv_no' undeclared (first use in this function)
    Perl.xsi: In function `XS_DBD__Perl__st_DESTROY':
    Perl.xsi:429: `sv_yes' undeclared (first use in this function)
    make: *** [Perl.o] Error 1
    # gcc -c -I/usr/local/include -O3 -DVERSION=\"1.15\"
    -DXS_VERSION=\"1.15\" -fPIC
    -I/u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503/sun4-solaris/CORE
    -Wall -Wno-comment -DDBI_NO_THREADS DBI.c
    gcc: DBI.c: No such file or directory
    gcc: No input files
    My perl is
    $ perl -V
    Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
    Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos 5.6 generic_105181-14 sun4u sparc sunw,ultra-60 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    Compiler:
    cc='gcc', optimize=' -O3', gccversion=
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
    Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
    Characteristics of this binary (from libperl):
    Built under solaris
    Compiled at Sep 20 2000 10:55:44
    %ENV:
    PERL5LIB="/u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503:/u01/app/orac
    le/product/9iAS/Apache/perl/lib/site_perl/5.005"
    @INC:
    /u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503/sun4-solaris
    /u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503
    /u01/app/oracle/product/9iAS/Apache/perl/lib/site_perl/5.005/sun4-solaris
    /u01/app/oracle/product/9iAS/Apache/perl/lib/site_perl/5.005
    /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503/sun4-solaris
    /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503
    /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005/sun4-solaris
    /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005
    .

    dormanttt wrote:
    I think I was too naive in how I used perl on my new Mac (which I love) and I think I screwed up somewhere along the line.
    What do you mean by naive? It's just like Linux, only different. You can always ask questions here about how to approach something in a Mac-friendly rather than Linux way. You are sure to get lots of advice, some of it good.
    I installed some CPAN modules using Porticus, and other modules from the command line using cpan. I now understand this was wrong. I now find myself in the position where the default perl is /opt/local/bin/perl, which is version 5.8.9.
    Just so everyone is clear, I'll quote the Porticus web site "Porticus is a Cocoa GUI for the MacPorts package manager". I get hassled around here when I bash MacPorts.
    How can I get back to a default perl 5.10 where I can install all the CPAN modules I need. I hesitate to use Porticus to remove perl5.8 and p5-* , because I think some of the other software I installed depends on them.
    I think your best bet would be to uninstall MacPorts. Those instructions don't seem complete. I think you might have some PATH and/or environment variable to clean up as well. If you want to reinstall MacPorts afterwards, it would probably run better without having had the OS upgraded underneath it. Regardless of how you feel about MacPorts, CPAN is, itself, a package manager. I don't see how adding another package manager and another version of Perl helps anyone.

  • How to install selected modules to save disk space?

    Rapidinstall installs all the modules of the Oracle Applications. But if we want to install only selected modules to save disk space (In R12 disk space requirment is 160+gb) how can we do it?
    Thanks and Regards
    M.A.Rahman

    If you really want to save space, install Vision 11.5.10.2, and upgrade the database to 10.1.0.5. Use the 10g tablespace rename feature to rename all APPS% tablespaces to some other name, can even just remove the APPS_TS from the tablespace names. Truncate applsys.fnd_ts_mig_cmds. The run OATM using uniform 64 KB segment size. The resulting database will be ~40GB, 30GB less than Vision from rapid install.
    Then upgrade to R12 via the procedure in Oracle Applications Upgrade Guide: Release 11i to Release 12 (zipped) B31566-01. The resulting footprint will be about 65 GB, almost 100GB smaller than R12 Vision from rapid install.

  • How to install output module

    I am trying to install the Output module with Adobe Bridge and I have followed the instructions on Adobe's site. However,
    the instructions say to install the files to path that is non-existent, to my current knowledge.
    For example: It's saying to install a folder into library/application support/adobe bridge/extensions.
    All I see is Applications/Adobe Bridge CC/plugins and some other folders. Plugins seems like the most related option, so I have already tried to install the folder/file there but still do not see the option to use the module in the Adobe Bridge CC software.
    It may helpful to know that this is a brand new computer so maybe the information may need to be slightly adjusted?
    Could use some help!
    Thanks!
    Robbie

    No, no, no robbies83etc, STAY THE HECK AWAY from your "Applications" folder!   READ CAREFULLY! Geez…
    The instructions direct you to the LIBRARY folder
    Install Adobe Output Module  <=== CLICK on this link to read the whole instructions page.
    When Bridge CC shipped, it didn't include the Adobe Output Module, which allows you to create PDF presentations and web galleries. The Adobe Output Module is now available for Bridge CC.
    NOTE: This plug-in is optional, and is not officially supported.
    What's covered
    Install the Adobe Output Module
    Handle warnings that appear
    Access the output module
    Possible issues
    Install the Adobe Output Module
    Make sure that you have the most recent version of Bridge CC installed. To check for updates, choose Help > Updates in Bridge. Follow the instructions to install any updates.
    Download the appropriate file below by right-clicking (Windows) or Ctrl+clicking (Mac OS) and choosing to save the file. Save the file in a location you can remember, such as your desktop.
    AOM_Mac_New.zip
    Mac OS (10.6-10.10) * Note: Preview in Browser does not work on Mac OS X 10.10.x (Yosemite) 
    Double-click the downloaded file to decompress it. Open the resulting AOM_Package_Mac, AOM_Package_Win64, or AOM_Package_Win32 folder. This folder contains:
    the Adobe Output Module folder
    the AdobeOutputModule.workspace file
    Copy the Adobe Output Module folder (not the AOM_Package_[OS] folder) into the Bridge CC Extensions folder in the appropriate location:
    Mac OS: /Library/Application Support/Adobe/Bridge CC Extensions  <=== NOTE that is the ROOT LEVEL LIBRARY
    Copy the AdobeOutputModule.workspace file into the Workspaces folder under the Bridge CC Extensions folder (same folder as referenced in step 2...
    etc. etc. …

  • How to install raid456 module on Pogoplug (POGO-B04)

    Hey dudes,
    I'm running ArchLinuxARM on my Pogoplug device and tried to setup a raid5-array using the four usb ports. Generally the mdadm setup works well... as log as I choose raid0 or raid1.... raid5 fails because the kernel module doesn't exist.
    How can I enable the raid456 module of this kernel build? modprobe doesn't know the module...
    I hope someone can help me...

    Arch Linux ARM is not supported here; it has its own forum.

  • How to install php module into web tier.

    Previously oracle http server included built-in php module so i could start php scripts under it but in the newest(web tire) version there is no built-in php module.
    But in the docs they say that it is possible but dont explain how to...
    So how to?)))

    Maybe this will help.
    http://www.oracle.com/technology/pub/articles/dev2arch/2007/02/php-java-bridge.html

  • How to install pgcrypto module for postgresql?

    I've been having a look at postgresql for OS X Lion Server and was planning to use it for setting up virtual mailboxes, rather than adding a real new user to the machine every time I need a new mail user. However, it appears that the pgcrypto module is not installed my default, so hashing passwords appropriately within postgresql is not possible.
    Does anyone know if it's possible to install the pgcrypto module without starting from source code and completely reinstalling postgresql?
    Or alternatively, I'd be happy if anyone could recommend a best-practice for virtual mail users without creating local user accounts on the server.
    Cheers,
    Andrew.

    Despite not finding much in Google or elsewhere, I managed to find the solution to this problem. Seems logical in hindsight, but it took me a lot of running around before I got there.
    Download the source code for postgresql from Apple: PostgreSQL-23
    Open Terminal
    cd ~/Downloads
    tar xvf PostgreSQL-23.tar
    Edit the Makefile and add pgcrypto to the ContribTools parameter. It should then read "ContribTools    = hstore intarray pg_upgrade pg_upgrade_support pgcrypto"
    make
    sudo make install-contrib
    sudo cp /tmp/PostgreSQL/Release/usr/lib/postgresql/pgcrypto.so /usr/lib/postgresql/
    sudo cp /tmp/PostgreSQL/Release/usr/share/postgresql/contrib/pgcrypto.sql /usr/share/postgresql/contrib/
    sudp cp /tmp/PostgreSQL/Release/usr/share/postgresql/contrib/uninstall_pgcrypto.sql /usr/share/postgresql/contrib/
    Don't know whether it was necessary, but I stopped and started postgres with serveradmin at this point. sudo serveradmin stop postgres; sudo serveradmin start postgres
    Then just update the databases where you need the crypt functionality. e.g. sudo -u _postgres psql -d template1 -f /usr/share/postgresql/contrib/pgcrypto.sql
    That's it. Now when I go into the appropriate database I get the expected return on:
    select crypt('thisisyourpassword', gen_salt('bf'));
                                crypt                            
    $2a$06$5gTpj2O6qyCvLs4iCcnBxuB/uxEdTMBI96fbHyyGOiP.A6t7nfKzC
    (1 row)
    Hope that helps anyone who is looking to store passwords in their postgresql database that is installed by default with Lion Server. I just didn't want to install postgresql from source (or any other precompiled package) and end up with two independent instances of postgresql running on the same server. Seems a bit messy (and unnecessary) to me.
    Cheers,
    Andrew.

  • How to install STREAMS-modules

    Hi,
    I am a Newbie in writing STREAMS-modules.I have copied the compiled and linked module to /usr/kernel/strmod, but I am not able to push it because calling ioctl/I_PUSH results in an EINVAL error (running strchg also fails). A try to push standard modules like "ldterm" or "u8lat1" succeeded.
    After renaming and deleting such a standard module I can still push it by it's old name (but not by the new one).
    Perhaps I made a mistake in the procedure of coding, compiling and linking the module, but I can not explain the fact the deleted modules still exist, so I going to believe in metaphysics.
    Please help me!
    Hendrik Suess

    Hi there,
    As far as I got your situation, your problem is related to the
    fact that you are running the 64-bit kernel (since your modload
    searches for modules in /usr/kernel/strmod/sparcv9 directory).
    AFAIK, gcc does not build 64-bit modules by default - you have
    to force it to do so (if it is at all able to build them).
    So the simplest way to check your module is to reboot your station
    in 32-bit mode (<pre>boot unix/kernel</pre> from the boot prompt).
    However, if you intend to use your module on 64-bit systems, you
    should build 64-bit module. The Answerbook contains special chapter
    about 64-bit modules/drivers and I've found lots of usefull hints
    there.
    General tip - GCC is great tool, but if you are developing kernel
    modules/drivers - try to use native (Sun) compiler. Ok, it costs
    several bucks, but after all it is used by Sun people that develop
    the kernel, so it is [almost always] up-to-date and hence will save you lots of time and pain.
    Hope, this helps,
    Ilya.

  • How to install LiveCycle Forms ES2

    Hi,
    We are using adobe LiveCycle ES2 with SP2.
    after installing the LiveCycle ES2 and applying the  patch, we noticed
    that we forgot to check the LiveCycle Forms ES2 to be installed!, now we need this module
    my question is how to install this module and add it to our LiveCycle environment ??
    thanks
    Hussam

    You need to re-run the LiveCycle Configuration Manager (LCM) by  selecting LiveCycle Forms Module along with existing one. Perform all  the tasks you did for the initial installation.
    The patched files should be automatically picked from deploy folder while running LCM.
    Wasil

  • 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)

  • How to De-install HRMS module in Oralce EBS 11.5.10.2

    Hi,
    Can some one please guide me, how to How to De-install HRMS module in Oralce EBS 11.5.10.2
    Thanks,

    Oracle Applications does not support deinstalling products once it is installed and licensed. So, there is no supported way to deintall HRMS.

  • 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.

  • How to Install the Downloaded NetBeans(*.nbm) Modules for Sun Java Studio

    Dear All,
    I have downloaded NetBeans Modules files with Extension *.nbm, and they are not getting installed, when I double click on them, or if I go through the Update Center and Select the Downloaded Modules even then also they are not getting installed, so please tell me the procedure how to install them.
    mahesh.

    It would be helpful to know which version of Java SE you are using, what NetBeans modules are you attemping to install, and any pertinent error messages that arise when you try to install the modules. As Jin_B pointed out, check the system/ide.log file in your .jstudio directory for possible error messages.

Maybe you are looking for

  • IPad books not showing in iTunes wish list

    Some time ago I added some iPad only books to my iTunes wish list, however they do not show up. They are still included in the count of items in my wish list and the price to buy all but I can't see them at all. Does anyone know how to either view th

  • How to enter full screen mode in email?

    Can we enter full screen mode when reading an email in landscape mode? I can see safari has already provide this feature. It is really useful for reading  wide pages using iPhone 5 with a longer screen. But I don't know how to use this feature for em

  • X apps (especially gtk apps) "freeze" while fluxbox keeps working

    HI Everyone, I'm trying to understand if this issue Ive been experienceing for the last several weeks (months?) is related to the "redrawing" and "freezing" issues I've been reading about with KDE. What I experience is the gui application failing to

  • Inkjet printheads

    Hello Forum:  Complete newbie here.  Query:  I have an HP2000c Inkjet color printer.  It has four ink cartridges (3 color, 1 black), and four little printhead cartridges (3 color, 1 black).  Can someone please explain to me why it has these four extr

  • Process time in payroll

    Hi experts! I get some issues about processing time in payroll. Help me, to configure the part. what do steps configure in the part? Regards Huy