https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
c

cuddly-night-88590

09/14/2022, 10:32 AM
Dumb question…recently had to reimage my macbook pro. Got rancher reinstalled via brew, but
nerdctl
,
helm
, and
kubectl
give me ‘command not found’. Do I need to install those separately? I thought I remembered they get bundled with rancher…maybe just need to add some locations to my PATH? Rancher desktop v1.5.1 & macOS v12.5.1
a

aloof-controller-49647

09/14/2022, 11:23 AM
Restart the terminal?
c

cuddly-night-88590

09/14/2022, 12:00 PM
no luck
w

wide-mechanic-33041

09/14/2022, 12:04 PM
is your <user>/.rd/bin in your path?
👍 1
c

cuddly-night-88590

09/14/2022, 12:07 PM
yeah
w

wide-mechanic-33041

09/14/2022, 12:07 PM
so its in the path, but no binaries are there?
or is it maybe a rosetta thing
c

cuddly-night-88590

09/14/2022, 12:10 PM
huh, I do see the binaries, maybe something funky is going on with my PATH even though the entry is there so if I use
Copy code
~/.rd/bin/kubectl
it works, but not
Copy code
kubectl
yup, my fault somehow didn’t set the PATH properly
w

wide-mechanic-33041

09/14/2022, 12:14 PM
yeah that is a bit odd. and assuming
which kubectl
doesn’t work as well.
c

cuddly-night-88590

09/14/2022, 12:14 PM
thanks guys
👍 1
w

wide-mechanic-33041

09/14/2022, 12:16 PM
thought the installer added the ~/.rd/bin to path, but when dealing w sudo etc that can be hit or miss. i didn’t see a paths.d file for RD which can be a bit easier than the long delimited option
c

cuddly-night-88590

09/14/2022, 12:18 PM
I use a non-standard shell (fish) so I opted out of the ‘set it for me’ option as I figured it would not configure fish properly. Turns out, neither can I 😆 It was a different variable basically instead of
PATH
I needed to add it to
fish_user_paths
👍 1
f

fast-garage-66093

09/14/2022, 3:43 PM
RD is supposed to configure fish correctly. Does it not work? For me it writes
Copy code
$ cat ~/.config/fish/config.fish
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
set --export --prepend PATH "/Users/jan/.rd/bin"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)
c

cuddly-night-88590

09/14/2022, 3:45 PM
technically I did not try because during installation I selected the ‘do it myself’ option because I didn’t think fish would be supported
f

fast-garage-66093

09/14/2022, 3:45 PM
And that works for me:
Copy code
$ fish
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
jan@mactop ~> which helm
/Users/jan/.rd/bin/helm
jan@mactop ~>
c

cuddly-night-88590

09/14/2022, 3:46 PM
might try reinstalling to verify that no manual config was necessary
f

fast-garage-66093

09/14/2022, 3:46 PM
That's fine. Note that you can still enable it later via the Preferences dialog, but if you have it working now, then it is all good 🙂
🙌 1
8 Views