Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: module-starter command not found after installation

by aitap (Curate)
on Dec 02, 2012 at 11:55 UTC ( [id://1006711]=note: print w/replies, xml ) Need Help??


in reply to Re^2: module-starter command not found after installation
in thread module-starter command not found after installation

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.

Replies are listed 'Best First'.
Re^4: module-starter command not found after installation
by gideondsouza (Pilgrim) on Dec 02, 2012 at 12:17 UTC
    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! :)

      You should be asking yourself why export PATH=/opt/local/bin:/opt/local/sbin:$PATH was in your .bash_profile. It was there for a reason. Your cure might have broken something else.


      Dave

Re^4: module-starter command not found after installation
by gideondsouza (Pilgrim) on Dec 02, 2012 at 12:11 UTC
    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 ??

      Do you use system Perl, or Perl built using perlbrew? What's inside ~/perl5/perlbrew/etc/bashrc? Do you see any differences in root's config files? Search ~/.cpan/CPAN/MyPrefs.pm and the output of o conf CPAN shell command for something unusual in options named make_..._arg and mbuild_..._arg.

      It looks like removing these lines made you use system Perl again instead of perlbrew's one, and CPAN is set to install modules in system directories by default.

      Sorry if my advice was wrong.
Re^4: module-starter command not found after installation
by gideondsouza (Pilgrim) on Dec 03, 2012 at 05:47 UTC
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1006711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found