Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sourcing perlbrew's etc/bashrc resets PATH to : #20

Closed
moritz opened this issue Oct 20, 2010 · 3 comments
Closed

sourcing perlbrew's etc/bashrc resets PATH to : #20

moritz opened this issue Oct 20, 2010 · 3 comments

Comments

@moritz
Copy link

moritz commented Oct 20, 2010

On a Debian squeeze system, installing perlbrew view cpanm, and then running

 perlbrew init

results in an ~/perl5/perlbrew/etc/bashrc that, when sourced, resets $PATH to :, making all future program invocations rather painful.

p6eval@host04:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
p6eval@host04:~$ source perl5/perlbrew/etc/bashrc 
p6eval@host04:~$ echo $PATH
:

This happens with version 0.11 of App::perlbrew.

@gugod
Copy link
Owner

gugod commented Oct 20, 2010

please help verifying that if PERLBREW_ROOT variable is set in ~/.perlbrew/init. It seems to me that it is not, and that that might be the real issue.

If so, try running perlbrew env to see if the output contain PERLBREW_ROOT with value $HOME/perl5/perlbrew. If that's true, you may do:

perlbrew env > ~/.perlbrew/init

This will fix the init file.

@gugod
Copy link
Owner

gugod commented Oct 20, 2010

Apparently the 'perlbrew init' process totally miss the part that generates ~/.perlbrew/init file. It is fixed and a new version is release. I feel sorry that you have to experience this.

@moritz
Copy link
Author

moritz commented Oct 21, 2010

The init file didn't exist; thanks for the fix, I'll try it when the release hits my local cpan mirror

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants