Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
go ahead... be a heretic
 
PerlMonks  

Re: module-starter command not found after installation

by aitap (Chaplain)
on Dec 02, 2012 at 10:50 UTC ( #1006697=note: print w/ replies, xml ) Need Help??


in reply to module-starter command not found after installation

Exactly where did CPAN install this module? Try perldoc perllocal to find this out.

Perhaps CPAN has automatically set up a local::lib overlay in the home directory of the user who ran CPAN (i.e. root) and thus made installed modules unavalable for other users.

Sorry if my advice was wrong.


Comment on Re: module-starter command not found after installation
Download Code
Re^2: module-starter command not found after installation
by gideondsouza (Pilgrim) on Dec 02, 2012 at 11:21 UTC

    Hey Maybe you're on to something

    I got this:

    Wed Nov 28 20:17:48 2012: "Module" Test::Simple
              "installed into: /opt/local/lib/perl5/5.12.4"
              "LINKTYPE: dynamic"
              "VERSION: 0.98"
              "EXE_FILES: "
       Wed Nov 28 20:18:06 2012: "Module" HTTP::Tiny
              "installed into: /opt/local/lib/perl5/site_perl/5.12.4"
              "LINKTYPE: dynamic"
              "VERSION: 0.024"
              "EXE_FILES: "
       Wed Nov 28 20:18:12 2012: "Module" IPC::Run3
              "installed into: /opt/local/lib/perl5/site_perl/5.12.4"
    

    Also, I can see a number of modules under /Library/Perl/5.10 and /Library/Perl/5.12, but I can't see Module::Starter here

    And It seems that all my newer module installations are going somewhere wrong! How do I make them go back to the regular default location?

    I checked somewhere, can I safely do this:

    eval $(perl -Mlocal::lib=--deactivate-all)

      This command will just unset some environment variables and restore PATH in your current shell. You need to edit your shell rc file (usually ~/.bashrc, check root's too) to reset changes local::lib made. You may also need to edit CPAN config, try grep -r perl5 ~/.cpan (maybe as root) to check whether you need to do it.

      You can also install modules as normal user (to ~/perl5) if you allow local::lib to create the overlay.

      Sorry if my advice was wrong.
        Hey thanks for your reply.

        I don't have .bashrc but I have .bash_profile and the following in it:

        source ~/perl5/perlbrew/etc/bashrc export PATH=/opt/local/bin:/opt/local/sbin:$PATH

        Should I remove the export or even the source line?

        What should I look for and edit in ~/.cpan ??

        OK!!! It seems like removing this line from .bash_profile worked:
        export PATH=/opt/local/bin:/opt/local/sbin:$PATH

        I installed Module Starter again and it deleted files from somewhere, installed and now I can use module-starter.pl

        Thanks a TON all you guys! :)

        This is in reply to @davido's post, I can't seem to reply directly to his post.

        Yes, some book I was reading had a thing about local::lib and I barely understood it well and added that export PATH in my bash_profile myself.

        I tried to run a bunch of scripts and my dummy catalyst projects, and they work so, so far so good :)

        When I did perldoc perllocal I get an output described in this post : Re^2: module-starter command not found after installation. I'm assuming those are modules installed in my local lib and if I need them I might have to do a re-install?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-04-24 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls