Hello,
I recently tried to add a board to my Arduino IDE, it apparently needed an NRFutil program which I installed, and got the following message:
"The script adafruit-nrfutil is installed in '/home/pi/.local/bin' which is not on PATH."
Also when I tried to install the board, the Arduino IDE gave the following message:
nrfutil not available on this operating system.
So, the board installation page has this advice:
"Add pip3 installation dir to your PATH if it is not added already. Make sure adafruit-nrfutil can be executed in terminal by running"
anyway, how do I add this to PATH?
Roger
Re: how to add to PATH
If you want it first on the search path:
Code: Select all
PATH=/home/pi/.local/bin:$PATH
Code: Select all
PATH=$PATH:/home/pi/.local/bin
Re: how to add to PATH
Thanks, that partially worked!
When I run from terminal
:pi@raspberrypi:~ $ adafruit-nrfutil version
adafruit-nrfutil version 0.5.3.post12
pi@raspberrypi:~ $
nrfutil file is found, but when I try to install the board on the Arduino IDE, I get the following message:
"Tool nrfprog is not available for your operating system"
Still stuck, will go back to Adafruit customer support... but anything anyone here can help with would be great!
Roger
When I run from terminal
:pi@raspberrypi:~ $ adafruit-nrfutil version
adafruit-nrfutil version 0.5.3.post12
pi@raspberrypi:~ $
nrfutil file is found, but when I try to install the board on the Arduino IDE, I get the following message:
"Tool nrfprog is not available for your operating system"
Still stuck, will go back to Adafruit customer support... but anything anyone here can help with would be great!
Roger
Re: how to add to PATH
Did you have a look at:
https://github.com/adafruit/Adafruit_nR ... issues/225
(that is not a very good new: Nordic seems to ship nfrprog for x86....https://infocenter.nordicsemi.com/pdf/n ... s_v1.0.pdf p7)
https://github.com/adafruit/Adafruit_nR ... issues/225
(that is not a very good new: Nordic seems to ship nfrprog for x86....https://infocenter.nordicsemi.com/pdf/n ... s_v1.0.pdf p7)
-
- Posts: 2331
- Joined: Sat Nov 09, 2019 12:14 pm
Re: how to add to PATH
Note that there are at least 3 different questions being asked here:
1) How do I add something (temporarily) to my $PATH variable in the shell?
2) How do I do the above in a way that is permanent (i.e., will persist across different invocations of the shell and/or reboots) ?
3) What is wrong with my Arduino IDE installation? Why doesn't it "just work" like it should?
#1 has been answered above.
I suspect #3 is the one the OP is actually interested in.
1) How do I add something (temporarily) to my $PATH variable in the shell?
2) How do I do the above in a way that is permanent (i.e., will persist across different invocations of the shell and/or reboots) ?
3) What is wrong with my Arduino IDE installation? Why doesn't it "just work" like it should?
#1 has been answered above.
I suspect #3 is the one the OP is actually interested in.
Poster of inconvenient truths.
Back from a short, unplanned vacation. Did you miss me?
Back from a short, unplanned vacation. Did you miss me?
Re: how to add to PATH
well yes, #1 has been answered.
I suspect that I need to have #2 answered. Then I can see if that will help with #3 as the guide on Adafruit for the board says that testing the path by running a simple 'version' argument will result in an an error free version, and it does, but still does not get me past the board install.
Thanks,
Roger
I suspect that I need to have #2 answered. Then I can see if that will help with #3 as the guide on Adafruit for the board says that testing the path by running a simple 'version' argument will result in an an error free version, and it does, but still does not get me past the board install.
Thanks,
Roger
-
- Posts: 2331
- Joined: Sat Nov 09, 2019 12:14 pm
Re: how to add to PATH
Actually, it is better to set PATH in .profile than .bashrc (or other places).
By the way, I often see references to .local/bin or maybe .config/bin or whatever. Where do these comes from? I always just use ~/bin (which is what the code in the .profile supports).
By the way, I often see references to .local/bin or maybe .config/bin or whatever. Where do these comes from? I always just use ~/bin (which is what the code in the .profile supports).
Poster of inconvenient truths.
Back from a short, unplanned vacation. Did you miss me?
Back from a short, unplanned vacation. Did you miss me?
Re: how to add to PATH
See .profile as you suggested above ...GlowInTheDark wrote: ↑Wed Sep 30, 2020 6:57 pmBy the way, I often see references to .local/bin or maybe .config/bin or whatever. Where do these comes from? I always just use ~/bin (which is what the code in the .profile supports).
Code: Select all
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi