Closed kanliot closed 4 years ago
Hi,
kanliot@maleday:/opt/rakudo-pkg/bin$ zef --help
lookes for zef in the $PATH.
If you want to use the root zef (probably not what you want):
/opt/rakudo-pkg/bin/zef --help
If you want to use the zef in your $HOME, ~/.perl6/bin
shoud be in your PATH, I suppose it isn't:
can you do the command below and verify the directory is there?
sh echo $PATH
If not, you need to add it the .profile (or an other shell init), e.g.:
PATH=~/.perl6/bin:/opt/rakudo-pkg/bin:/opt/rakudo-pkg/share/perl6/site/bin:$PATH
export PATH
sh -c 'echo $PATH' #returns normally
PATH=~/.perl6/bin:/opt/rakudo-pkg/bin:/opt/rakudo-pkg/share/perl6/site/bin:$PATH
export PATH
Yeah. above fixes it. Not sure what I did wrong, but thank you. I'm 99% sure it was my error.
also there's this line in my ~/.profile
:
PATH=~/.perl6/bin:.:/opt/rakudo-pkg/share/perl6/site/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
why did .
get added to the path? I think it was /opt/rakudo-pkg/bin/add-rakudo-to-path
that added .
.
If you like I can create a separate "issue" for the .
problem.
Thank you kindly for your help nxadm.
i believe this is the problem:
BINDIR="$(dirname $0)"
in the above-mentioned file. The variable BINDIR will change depending on which directory you run the above-mentioned file from.
Again, thanks nxadm.
No problem, feel free to open issues.
I installed through the main page https://nxadm.github.io/rakudo-pkg/ adding the deb repository to /etc/apt/sources.list.d/rakudo-pkg.list and then installing rakudo-pkg
I fixed my paths, but didn't reboot. zef isn't working as seen below. Not sure what I did wrong.