Skip to content

Instantly share code, notes, and snippets.

@melezhik
Created April 11, 2019 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melezhik/2151efe82a18f686a3e2899810c6c52e to your computer and use it in GitHub Desktop.
Save melezhik/2151efe82a18f686a3e2899810c6c52e to your computer and use it in GitHub Desktop.
sudo perl6 does not see user's perl6 lib
perl6 -MJSON::Tiny -e 'say $*REPO.repo-chain'
(inst#/home/melezhik/.perl6 inst#/opt/rakudo-pkg/share/perl6/site inst#/opt/rakudo-pkg/share/perl6/vendor inst#/opt/rakudo-pkg/share/perl6 ap# nqp# perl5#)
sudo env PATH=$PATH PERL6LIB=PERL6LIB=inst#/home/melezhik/.perl6 perl6 -MJSON::Tiny
Use of Nil in string context
===SORRY!===
Could not find JSON::Tiny at line 1 in:
file#/home/melezhik/projects/sparrowdo/PERL6LIB=inst#/home/melezhik/.perl6
inst#/root/.perl6
inst#/opt/rakudo-pkg/share/perl6/site
inst#/opt/rakudo-pkg/share/perl6/vendor
inst#/opt/rakudo-pkg/share/perl6
ap#
nqp#
perl5#
@melezhik
Copy link
Author

sudo env PATH=$PATH PERL6LIB=inst#/home/melezhik/.perl6 perl6 -MJSON::Tiny
did the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment